summaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-11-09 19:58:21 +0000
committerDan Gohman <gohman@apple.com>2010-11-09 19:58:21 +0000
commitcd93f3bbb9cf209aff3ffdff9d7c7d05d935b292 (patch)
tree230b73ebb2ab3220445567e348a6c2d348327a66 /lib/Transforms
parent40b6a19daa0efa5131a56aa15cc8694d3cf6171e (diff)
downloadexternal_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')
-rw-r--r--lib/Transforms/Scalar/LICM.cpp2
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;