diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-04-13 06:55:52 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-04-13 06:55:52 +0000 |
commit | 3ee5f3446970524a66b1fa2b251453c1c0369356 (patch) | |
tree | c12bda92a8c30c2fd03f942a301a34ab2382f9e0 /llvm/lib/Analysis/VectorUtils.cpp | |
parent | ce23e9702e0fc4011355e3fe1e3ab876b77fc4ac (diff) | |
download | bcm5719-llvm-3ee5f3446970524a66b1fa2b251453c1c0369356.tar.gz bcm5719-llvm-3ee5f3446970524a66b1fa2b251453c1c0369356.zip |
[InstCombine] We folded an fcmp to an i1 instead of a vector of i1
Remove an ad-hoc transform in InstCombine and replace it with more
general machinery (ValueTracking, InstructionSimplify and VectorUtils).
This fixes PR27332.
llvm-svn: 266175
Diffstat (limited to 'llvm/lib/Analysis/VectorUtils.cpp')
-rw-r--r-- | llvm/lib/Analysis/VectorUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/VectorUtils.cpp b/llvm/lib/Analysis/VectorUtils.cpp index 4a6cdf973e2..cffe033ee65 100644 --- a/llvm/lib/Analysis/VectorUtils.cpp +++ b/llvm/lib/Analysis/VectorUtils.cpp @@ -121,10 +121,10 @@ llvm::checkBinaryFloatSignature(const CallInst &I, /// \brief Returns intrinsic ID for call. /// For the input call instruction it finds mapping intrinsic and returns /// its ID, in case it does not found it return not_intrinsic. -Intrinsic::ID llvm::getIntrinsicIDForCall(CallInst *CI, +Intrinsic::ID llvm::getIntrinsicIDForCall(const CallInst *CI, const TargetLibraryInfo *TLI) { // If we have an intrinsic call, check if it is trivially vectorizable. - if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(CI)) { + if (const auto *II = dyn_cast<IntrinsicInst>(CI)) { Intrinsic::ID ID = II->getIntrinsicID(); if (isTriviallyVectorizable(ID) || ID == Intrinsic::lifetime_start || ID == Intrinsic::lifetime_end || ID == Intrinsic::assume) |