summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-24 20:48:32 +0000
committerChris Lattner <sabre@nondot.org>2003-02-24 20:48:32 +0000
commit4869f3700e07d41bcc34f0b292161727db550716 (patch)
tree770746e7080004b495798ea83c801a2d50540f20 /llvm/lib/Transforms/Utils
parent7606fb65c0f9dded7e1aa3f6be143e1deba19119 (diff)
downloadbcm5719-llvm-4869f3700e07d41bcc34f0b292161727db550716.tar.gz
bcm5719-llvm-4869f3700e07d41bcc34f0b292161727db550716.zip
Rename Instruction::hasSideEffects() -> mayWriteToMemory()
llvm-svn: 5620
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 10028bacecb..8f67e111a78 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -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
OpenPOWER on IntegriCloud