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 | cd93f3bbb9cf209aff3ffdff9d7c7d05d935b292 (patch) | |
tree | 230b73ebb2ab3220445567e348a6c2d348327a66 /lib/Transforms/Scalar/LICM.cpp | |
parent | 40b6a19daa0efa5131a56aa15cc8694d3cf6171e (diff) | |
download | external_llvm-cd93f3bbb9cf209aff3ffdff9d7c7d05d935b292.zip external_llvm-cd93f3bbb9cf209aff3ffdff9d7c7d05d935b292.tar.gz external_llvm-cd93f3bbb9cf209aff3ffdff9d7c7d05d935b292.tar.bz2 |
Teach LICM and AliasSetTracker about AccessesArgumentsReadonly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LICM.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LICM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 7e10217..a584688 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/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; |