diff options
author | Dan Gohman <gohman@apple.com> | 2010-11-09 19:58:21 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-11-09 19:58:21 +0000 |
commit | 0f175074783b26556ddeee86d33b2d7809cfee00 (patch) | |
tree | 7cdd85fef4c6484aa04fca9cd1de63aa7c6cb974 /llvm/lib/Transforms | |
parent | de521556851ba48736786ce23488682e29376da8 (diff) | |
download | bcm5719-llvm-0f175074783b26556ddeee86d33b2d7809cfee00.tar.gz bcm5719-llvm-0f175074783b26556ddeee86d33b2d7809cfee00.zip |
Teach LICM and AliasSetTracker about AccessesArgumentsReadonly.
llvm-svn: 118618
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LICM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index 7e1021725c9..a5846887124 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -412,7 +412,7 @@ bool LICM::canSinkOrHoistInst(Instruction &I) { AliasAnalysis::ModRefBehavior Behavior = AA->getModRefBehavior(CI); if (Behavior == AliasAnalysis::DoesNotAccessMemory) return true; - else if (Behavior == AliasAnalysis::OnlyReadsMemory) { + if (AliasAnalysis::onlyReadsMemory(Behavior)) { // If this call only reads from memory and there are no writes to memory // in the loop, we can hoist or sink the call as appropriate. bool FoundMod = false; |