From f0a93ed9c59d706494496c6fe4e8354864d24aa7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 24 Feb 2003 20:48:32 +0000 Subject: Rename Instruction::hasSideEffects() -> mayWriteToMemory() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5620 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/Local.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Transforms/Utils/Local.cpp') diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp index 10028bacec..8f67e111a7 100644 --- a/lib/Transforms/Utils/Local.cpp +++ b/lib/Transforms/Utils/Local.cpp @@ -91,7 +91,7 @@ bool ConstantFoldTerminator(BasicBlock *BB) { // bool isInstructionTriviallyDead(Instruction *I) { - return I->use_empty() && !I->hasSideEffects() && !isa(I); + return I->use_empty() && !I->mayWriteToMemory() && !isa(I); } // dceInstruction - Inspect the instruction at *BBI and figure out if it's -- cgit v1.2.3-18-g5258