[SystemZ] Set usaAA to true
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Mon, 28 Oct 2013 13:53:37 +0000 (13:53 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Mon, 28 Oct 2013 13:53:37 +0000 (13:53 +0000)
commit349baa60393c637f479ee31b25c65555b095a2ef
tree80faee69092f3ce2360fd840c792a186dd74cfbc
parenta7be36c8eb4717e44b05e00008544b883fc87de9
[SystemZ] Set usaAA to true

useAA significantly improves the handling of vector code that has TBAA
information attached.  It also helps other cases, as shown by the testsuite
changes here.  The only real downside I've seen is that it interferes with
MergeConsecutiveStores.  The problem is that that optimization works top
down, starting at the first store in the chain, and looks for cases where
the chain result is only used by a single related store.  These related
stores don't alias, so useAA will have rewritten all the later stores to
use a different chain input (typically the same one as the first store).

I think the advantages outweigh the disadvantages though, so for now I've
just disabled alias analysis for the unaligned-01.ll test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193521 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZSubtarget.h
test/CodeGen/SystemZ/alias-01.ll
test/CodeGen/SystemZ/bswap-02.ll
test/CodeGen/SystemZ/int-add-09.ll
test/CodeGen/SystemZ/int-add-10.ll
test/CodeGen/SystemZ/unaligned-01.ll