summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-07-09 07:04:00 +0000
committerCraig Topper <craig.topper@intel.com>2017-07-09 07:04:00 +0000
commit95d2347ae16335aa30139c0aa6c050ac3dce2ad7 (patch)
tree71608010c6bade75672bf4fc719fc11779b8751a /llvm/lib/Target
parenta809f28956fabc28d29103aada5f72cf847efe91 (diff)
downloadbcm5719-llvm-95d2347ae16335aa30139c0aa6c050ac3dce2ad7.tar.gz
bcm5719-llvm-95d2347ae16335aa30139c0aa6c050ac3dce2ad7.zip
[IR] Make use of Type::isPtrOrPtrVectorTy/isIntOrIntVectorTy/isFPOrFPVectorTy to shorten code. NFC
llvm-svn: 307491
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
index ce5c57e0f51..34099c6064c 100644
--- a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
@@ -787,7 +787,7 @@ getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index) {
int Cost = ((Val->getScalarSizeInBits() == 1) ? 2 /*+test-under-mask*/ : 1);
// Give a slight penalty for moving out of vector pipeline to FXU unit.
- if (Index == 0 && Val->getScalarType()->isIntegerTy())
+ if (Index == 0 && Val->isIntOrIntVectorTy())
Cost += 1;
return Cost;
OpenPOWER on IntegriCloud