[llvm-commits] [llvm] r110293 - in /llvm/trunk: lib/Analysis/BasicAliasAnalysis.cpp test/Analysis/BasicAA/getmodrefinfo-cs-cs.ll
Dan Gohman
gohman at apple.com
Wed Aug 4 17:43:10 PDT 2010
Author: djg
Date: Wed Aug 4 19:43:10 2010
New Revision: 110293
URL: http://llvm.org/viewvc/llvm-project?rev=110293&view=rev
Log:
Revert r110270 for now. It appears to uncover a memdep bug.
Modified:
llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
llvm/trunk/test/Analysis/BasicAA/getmodrefinfo-cs-cs.ll
Modified: llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp?rev=110293&r1=110292&r2=110293&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp Wed Aug 4 19:43:10 2010
@@ -425,8 +425,8 @@
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).
Modified: llvm/trunk/test/Analysis/BasicAA/getmodrefinfo-cs-cs.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/BasicAA/getmodrefinfo-cs-cs.ll?rev=110293&r1=110292&r2=110293&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/BasicAA/getmodrefinfo-cs-cs.ll (original)
+++ llvm/trunk/test/Analysis/BasicAA/getmodrefinfo-cs-cs.ll Wed Aug 4 19:43:10 2010
@@ -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()
More information about the llvm-commits
mailing list