diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-10-28 13:53:37 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-10-28 13:53:37 +0000 |
commit | 094e6097168e92c53311e04365803e87e28a4559 (patch) | |
tree | 4ab5d8e1f3a59619bed571b287893ba950f921b6 /llvm/lib/Target/SystemZ/SystemZSubtarget.h | |
parent | cf7259c09490a96b88dd9f38552184e0c9322772 (diff) | |
download | bcm5719-llvm-094e6097168e92c53311e04365803e87e28a4559.tar.gz bcm5719-llvm-094e6097168e92c53311e04365803e87e28a4559.zip |
[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.
llvm-svn: 193521
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZSubtarget.h')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZSubtarget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZSubtarget.h b/llvm/lib/Target/SystemZ/SystemZSubtarget.h index f321cb258a2..74d3f90ad74 100644 --- a/llvm/lib/Target/SystemZ/SystemZSubtarget.h +++ b/llvm/lib/Target/SystemZ/SystemZSubtarget.h @@ -39,6 +39,9 @@ public: SystemZSubtarget(const std::string &TT, const std::string &CPU, const std::string &FS); + // This is important for reducing register pressure in vector code. + virtual bool useAA() const LLVM_OVERRIDE { return true; } + // Automatically generated by tblgen. void ParseSubtargetFeatures(StringRef CPU, StringRef FS); |