mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Rename Instruction::hasSideEffects() -> mayWriteToMemory()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5620 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -91,7 +91,7 @@ bool ConstantFoldTerminator(BasicBlock *BB) {
|
||||
//
|
||||
|
||||
bool isInstructionTriviallyDead(Instruction *I) {
|
||||
return I->use_empty() && !I->hasSideEffects() && !isa<TerminatorInst>(I);
|
||||
return I->use_empty() && !I->mayWriteToMemory() && !isa<TerminatorInst>(I);
|
||||
}
|
||||
|
||||
// dceInstruction - Inspect the instruction at *BBI and figure out if it's
|
||||
|
Reference in New Issue
Block a user