Revert "[NewGVN] Strengthen a couple of assertions."

It's breaking some bots. Will investigate and recommit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291712 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Davide Italiano 2017-01-11 22:00:29 +00:00
parent c6b1aed80d
commit c38c1351bc

View File

@ -1063,10 +1063,10 @@ void NewGVN::moveValueToNewCongruenceClass(Value *V, CongruenceClass *OldClass,
OldClass->Members.erase(V);
NewClass->Members.insert(V);
if (isa<StoreInst>(V)) {
assert(OldClass->StoreCount > 0 && "Store count underflow detected");
--OldClass->StoreCount;
assert(NewClass->StoreCount < UINT_MAX && "Store count overflow detected");
assert(OldClass->StoreCount >= 0);
++NewClass->StoreCount;
assert(NewClass->StoreCount >= 0);
}
ValueToClass[V] = NewClass;