[PowerPC] Cleanup cost model for unaligned vector loads/stores
authorHal Finkel <hfinkel@anl.gov>
Wed, 2 Sep 2015 21:03:28 +0000 (21:03 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 2 Sep 2015 21:03:28 +0000 (21:03 +0000)
commit2551be3865afab6908e17a4bee76d3cb64461fb7
treef7f76c7da906aa64c83c8a035cf616e11cf463c3
parent3d7575d7e2e8bdb6603f6754dfa86aacf1a4bbf3
[PowerPC] Cleanup cost model for unaligned vector loads/stores

I'm adding a regression test to better cover code generation for unaligned
vector loads and stores, but there's no functional change to the code
generation here. There is an improvement to the cost model for unaligned vector
loads and stores, mostly for QPX (for which we were not previously accounting
for the permutation-based loads), and the cost model implementation is cleaner.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246712 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
test/Analysis/CostModel/PowerPC/load_store.ll
test/Analysis/CostModel/PowerPC/unal-vec-ldst.ll [new file with mode: 0644]
test/CodeGen/PowerPC/unal-vec-ldst.ll [new file with mode: 0644]