mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +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:
@@ -154,7 +154,7 @@ bool ADCE::doADCE() {
|
||||
BBI != BBE; ++BBI) {
|
||||
BasicBlock *BB = *BBI;
|
||||
for (BasicBlock::iterator II = BB->begin(), EI = BB->end(); II != EI; ) {
|
||||
if (II->hasSideEffects() || II->getOpcode() == Instruction::Ret) {
|
||||
if (II->mayWriteToMemory() || II->getOpcode() == Instruction::Ret) {
|
||||
markInstructionLive(II);
|
||||
++II; // Increment the inst iterator if the inst wasn't deleted
|
||||
} else if (isInstructionTriviallyDead(II)) {
|
||||
|
||||
Reference in New Issue
Block a user