mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-03 10:19:18 +00:00
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:
parent
c6b1aed80d
commit
c38c1351bc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user