Skip to content

Commit 589de5e

Browse files
committedJan 18, 2017
[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
1 parent 3d26ee2 commit 589de5e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

Diff for: ‎llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -1939,8 +1939,6 @@ Instruction *InstCombiner::foldICmpShlConstant(ICmpInst &Cmp,
19391939

19401940
if (Cmp.isEquality()) {
19411941
Constant *LShrC = ConstantInt::get(ShType, C->lshr(*ShiftAmt));
1942-
if (Shl->hasNoUnsignedWrap())
1943-
return new ICmpInst(Pred, X, LShrC);
19441942

19451943
// If the shift is NSW and we compare to 0, then it is just shifting out
19461944
// sign bits, no need for an AND either.

0 commit comments

Comments
 (0)
Please sign in to comment.