Revert r110270 for now. It appears to uncover a memdep bug.
authorDan Gohman <gohman@apple.com>
Thu, 5 Aug 2010 00:43:10 +0000 (00:43 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 5 Aug 2010 00:43:10 +0000 (00:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110293 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BasicAliasAnalysis.cpp
test/Analysis/BasicAA/getmodrefinfo-cs-cs.ll

index ac06e9a2c9d9a22ee157617f97a987a03a472f5d..6bb84d4e458b6a2d2efedee37c206ebc4675c379 100644 (file)
@@ -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).
index f655913f3d129c7a5c4b60d81b60410b9178923d..953eaa847d1e45fc81dbc1d1207dcde691042f1d 100644 (file)
@@ -1,4 +1,5 @@
 ; RUN: opt < %s -aa-eval -print-all-alias-modref-info -disable-output |& FileCheck %s
+; XFAIL: *
 
 ; CHECK: Just Ref: call void @ro() <-> call void @f0()