diff options
author | Owen Anderson <resistor@mac.com> | 2008-04-17 05:36:50 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-04-17 05:36:50 +0000 |
commit | 241f65321efc6ad84ed875cd9494df8ca1cff309 (patch) | |
tree | 6a5fe0bd914bf37dce5a90f736c2178f58094e75 /lib/Analysis/MemoryDependenceAnalysis.cpp | |
parent | f2317782697e05787dbae01c013bfdf642ed6299 (diff) | |
download | external_llvm-241f65321efc6ad84ed875cd9494df8ca1cff309.zip external_llvm-241f65321efc6ad84ed875cd9494df8ca1cff309.tar.gz external_llvm-241f65321efc6ad84ed875cd9494df8ca1cff309.tar.bz2 |
Make GVN able to remove unnecessary calls to read-only functions again.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/MemoryDependenceAnalysis.cpp')
-rw-r--r-- | lib/Analysis/MemoryDependenceAnalysis.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index 314d6e4..161c2fe 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -134,8 +134,7 @@ Instruction* MemoryDependenceAnalysis::getCallSiteDependency(CallSite C, } else if (isa<CallInst>(QI)) { AliasAnalysis::ModRefBehavior result = AA.getModRefBehavior(CallSite::get(QI)); - if (result != AliasAnalysis::DoesNotAccessMemory && - result != AliasAnalysis::OnlyReadsMemory) { + if (result != AliasAnalysis::DoesNotAccessMemory) { if (!start && !block) { cachedResult.first = QI; cachedResult.second = true; |