diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-05 00:43:10 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-05 00:43:10 +0000 |
commit | 34fa82f7e82a2845a42d0a2725e70412d06c917b (patch) | |
tree | af45083a524e0493b13276141600d93e2adbcb27 /lib/Analysis | |
parent | 1d9125a6ff192f1346d2b08bbf6ecc9c9e44103d (diff) | |
download | external_llvm-34fa82f7e82a2845a42d0a2725e70412d06c917b.zip external_llvm-34fa82f7e82a2845a42d0a2725e70412d06c917b.tar.gz external_llvm-34fa82f7e82a2845a42d0a2725e70412d06c917b.tar.bz2 |
Revert r110270 for now. It appears to uncover a memdep bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/BasicAliasAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp index ac06e9a..6bb84d4 100644 --- a/lib/Analysis/BasicAliasAnalysis.cpp +++ b/lib/Analysis/BasicAliasAnalysis.cpp @@ -425,8 +425,8 @@ BasicAliasAnalysis::getModRefInfo(ImmutableCallSite CS1, ModRefBehavior CS2B = AliasAnalysis::getModRefBehavior(CS2); if (CS2B == DoesNotAccessMemory) return NoModRef; - // If CS1 only reads from memory, just return ref. - if (CS1B == OnlyReadsMemory) + // If they both only read from memory, just return ref. + if (CS1B == OnlyReadsMemory && CS2B == OnlyReadsMemory) return Ref; // Otherwise, fall back to NoAA (mod+ref). |