[PowerPC] Include the permutation cost for unaligned vector loads
authorHal Finkel <hfinkel@anl.gov>
Thu, 3 Sep 2015 21:23:18 +0000 (21:23 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 3 Sep 2015 21:23:18 +0000 (21:23 +0000)
commitecebcfc3a1e9e115f04c2610779d6020f8e1d03b
treebda3e86a08d4f6c1da38e12a69b0e9a9f3ba58c1
parentc2a163944ae333419b032f04e77d93527308b46a
[PowerPC] Include the permutation cost for unaligned vector loads

Pre-P8, when we generate code for unaligned vector loads (for Altivec and QPX
types), even when accounting for the combining that takes place for multiple
consecutive such loads, there is at least one load instructions and one
permutation for each load. Make sure the cost reported reflects the cost of the
permutes as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246807 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