mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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
This commit is contained in:
parent
1d9125a6ff
commit
34fa82f7e8
@ -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).
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user