summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-06-04 22:04:05 +0000
committerSanjay Patel <spatel@rotateright.com>2016-06-04 22:04:05 +0000
commitea8a2111690ab56450f7ab3cedcbcdbae17a87aa (patch)
tree4958cab8961f38b880dbf2e8f8ca81930d07752f /llvm/lib
parent2ead861d074da501e5f6c5dca75324c86fbabb64 (diff)
downloadbcm5719-llvm-ea8a2111690ab56450f7ab3cedcbcdbae17a87aa.tar.gz
bcm5719-llvm-ea8a2111690ab56450f7ab3cedcbcdbae17a87aa.zip
[InstCombine] allow vector constants for cast+icmp fold
This is step 1 of unknown towards fixing PR28001: https://llvm.org/bugs/show_bug.cgi?id=28001 llvm-svn: 271810
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 0f119bfada8..e7f87d44aea 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -2439,7 +2439,7 @@ Instruction *InstCombiner::visitICmpInstWithCastAndCast(ICmpInst &ICI) {
}
// If we aren't dealing with a constant on the RHS, exit early.
- auto *CI = dyn_cast<ConstantInt>(ICI.getOperand(1));
+ auto *CI = dyn_cast<Constant>(ICI.getOperand(1));
if (!CI)
return nullptr;
OpenPOWER on IntegriCloud