llvm-6502/test/Analysis/GlobalsModRef
Arnold Schwaighofer 1bdb320dae BasicAA: Fix value equality and phi cycles
When there are cycles in the value graph we have to be careful interpreting
"Value*" identity as "value" equivalence. We interpret the value of a phi node
as the value of its operands.
When we check for value equivalence now we make sure that the "Value*" dominates
all cycles (phis).

%0 = phi [%noaliasval, %addr2]
%l = load %ptr
%addr1 = gep @a, 0, %l
%addr2 = gep @a, 0, (%l + 1)
store %ptr ...

Before this patch we would return NoAlias for (%0, %addr1) which is wrong
because the value of the load is from different iterations of the loop.

Tested on x86_64 -mavx at O3 and O3 -flto with no performance or compile time
regressions.

PR18068
radar://15653794

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198290 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-02 03:31:36 +00:00
..
2008-09-03-ReadGlobals.ll FileCheck-ize tests. 2012-04-24 10:45:44 +00:00
aliastest.ll BasicAA: Fix value equality and phi cycles 2014-01-02 03:31:36 +00:00
chaining-analysis.ll FileCheck-ize tests. 2012-04-24 10:45:44 +00:00
indirect-global.ll FileCheck-ize tests. 2012-04-24 10:45:44 +00:00
modreftest.ll FileCheck-ize tests. 2012-04-24 10:45:44 +00:00
pr12351.ll Handle intrinsics in GlobalsModRef. Fixes pr12351. 2012-03-28 21:31:24 +00:00
purecse.ll FileCheck-ize tests. 2012-04-24 10:45:44 +00:00
volatile-instrs.ll TBAA: remove !tbaa from testing cases if not used. 2013-04-29 22:42:01 +00:00