diff options
author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2019-01-26 01:18:48 +0000 |
---|---|---|
committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2019-01-26 01:18:48 +0000 |
commit | 7d007ddedfd6f8f3756a17e0d280c38ab2e92f41 (patch) | |
tree | f34061ba15d9262c931ecdc55be239a2454c2c7b /llvm/lib/Target/PowerPC/PPCSubtarget.h | |
parent | 7a8e74775c54a73d54b735c622cfbd5acef8e018 (diff) | |
download | bcm5719-llvm-7d007ddedfd6f8f3756a17e0d280c38ab2e92f41.tar.gz bcm5719-llvm-7d007ddedfd6f8f3756a17e0d280c38ab2e92f41.zip |
[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
llvm-svn: 352261
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCSubtarget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h index cb2efeac5f6..ed9d5f1ae56 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.h +++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h @@ -135,6 +135,7 @@ protected: bool IsISA3_0; bool UseLongCalls; bool SecurePlt; + bool VectorsUseTwoUnits; POPCNTDKind HasPOPCNTD; @@ -259,6 +260,7 @@ public: bool isPPC4xx() const { return IsPPC4xx; } bool isPPC6xx() const { return IsPPC6xx; } bool isSecurePlt() const {return SecurePlt; } + bool vectorsUseTwoUnits() const {return VectorsUseTwoUnits; } bool isE500() const { return IsE500; } bool isFeatureMFTB() const { return FeatureMFTB; } bool isDeprecatedDST() const { return DeprecatedDST; } |