summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-01-18 20:09:59 +0000
committerSanjay Patel <spatel@rotateright.com>2017-01-18 20:09:59 +0000
commit589de5ea4e5391930c459f97f71f80d754587994 (patch)
treea478315d27da2581b16b754590115c4c12ac8f28
parent3d26ee29215b0e192245e5dabbda825afd3088be (diff)
downloadbcm5719-llvm-589de5ea4e5391930c459f97f71f80d754587994.tar.gz
bcm5719-llvm-589de5ea4e5391930c459f97f71f80d754587994.zip
[InstCombine] remove a redundant check; NFCI
I missed deleting this check when I refactored this chunk in: https://reviews.llvm.org/rL292260 llvm-svn: 292433
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
index b00bd20f2f6..268b05dc63c 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -1939,8 +1939,6 @@ Instruction *InstCombiner::foldICmpShlConstant(ICmpInst &Cmp,
if (Cmp.isEquality()) {
Constant *LShrC = ConstantInt::get(ShType, C->lshr(*ShiftAmt));
- if (Shl->hasNoUnsignedWrap())
- return new ICmpInst(Pred, X, LShrC);
// If the shift is NSW and we compare to 0, then it is just shifting out
// sign bits, no need for an AND either.
OpenPOWER on IntegriCloud