[PowerPC] Update Vector Costs for P9
commit8c69b6f74f085b922ff187a028e54c061e50844c
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Sat, 26 Jan 2019 01:18:48 +0000 (26 01:18 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Sat, 26 Jan 2019 01:18:48 +0000 (26 01:18 +0000)
tree2a0262fe4cc398c548d6ae9678330306ce9a9a5a
parent62dd6f64a054b4188e4d7d76c0967311e10d3460
[PowerPC] Update Vector Costs for P9

For the power9 CPU, vector operations consume a pair of execution units rather
than one execution unit like a scalar operation. Update the target transform
cost functions to reflect the higher cost of vector operations when targeting
Power9.

Patch by RolandF.

Differential revision: https://reviews.llvm.org/D55461

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352261 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPC.td
lib/Target/PowerPC/PPCSubtarget.cpp
lib/Target/PowerPC/PPCSubtarget.h
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
lib/Target/PowerPC/PPCTargetTransformInfo.h
test/Analysis/CostModel/PowerPC/p9.ll [new file with mode: 0644]
test/Transforms/SLPVectorizer/PowerPC/short-to-double.ll [new file with mode: 0644]