mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
fix PR8067, an over-aggressive assertion in LICM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113146 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -681,10 +681,10 @@ void LICM::PromoteAliasSet(AliasSet &AS) {
|
||||
// it.
|
||||
if (isa<LoadInst>(Use))
|
||||
assert(!cast<LoadInst>(Use)->isVolatile() && "AST broken");
|
||||
else if (isa<StoreInst>(Use))
|
||||
assert(!cast<StoreInst>(Use)->isVolatile() &&
|
||||
Use->getOperand(0) != ASIV && "AST broken");
|
||||
else
|
||||
else if (isa<StoreInst>(Use)) {
|
||||
assert(!cast<StoreInst>(Use)->isVolatile() && "AST broken");
|
||||
if (Use->getOperand(0) == ASIV) return;
|
||||
} else
|
||||
return; // Not a load or store.
|
||||
|
||||
if (!GuaranteedToExecute)
|
||||
|
Reference in New Issue
Block a user