mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
[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
This commit is contained in:
parent
d5dff4ce3e
commit
e1b9650e36
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user