diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-24 20:48:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-24 20:48:32 +0000 |
commit | f0a93ed9c59d706494496c6fe4e8354864d24aa7 (patch) | |
tree | 814a9c9517aedfe89b7f2e08cf58314ea3633d06 /lib/Transforms/Scalar/Reassociate.cpp | |
parent | 9971ac4a36c54488bcdf55d7e493ac0cd6dc168a (diff) |
Rename Instruction::hasSideEffects() -> mayWriteToMemory()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/Reassociate.cpp')
-rw-r--r-- | lib/Transforms/Scalar/Reassociate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index 4212e6ae69..df0a64188f 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -74,7 +74,7 @@ unsigned Reassociate::getRank(Value *V) { if (I->getOpcode() == Instruction::PHINode || I->getOpcode() == Instruction::Alloca || I->getOpcode() == Instruction::Malloc || isa<TerminatorInst>(I) || - I->hasSideEffects()) + I->mayWriteToMemory()) // Cannot move inst if it writes to memory! return RankMap[I->getParent()]; unsigned &CachedRank = InstRankMap[I]; |