diff options
author | Craig Topper <craig.topper@intel.com> | 2017-07-09 07:04:00 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-07-09 07:04:00 +0000 |
commit | 95d2347ae16335aa30139c0aa6c050ac3dce2ad7 (patch) | |
tree | 71608010c6bade75672bf4fc719fc11779b8751a /llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp | |
parent | a809f28956fabc28d29103aada5f72cf847efe91 (diff) | |
download | bcm5719-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/Transforms/InstCombine/InstCombineCasts.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp index df8c5081b4a..dfdfd3e9da8 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp @@ -1866,7 +1866,7 @@ static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, InstCombiner::BuilderTy &Builder) { Type *DestTy = BitCast.getType(); BinaryOperator *BO; - if (!DestTy->getScalarType()->isIntegerTy() || + if (!DestTy->isIntOrIntVectorTy() || !match(BitCast.getOperand(0), m_OneUse(m_BinOp(BO))) || !BO->isBitwiseLogicOp()) return nullptr; |