[llvm] r292433 - [InstCombine] remove a redundant check; NFCI
    Sanjay Patel via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jan 18 12:09:59 PST 2017
    
    
  
Author: spatel
Date: Wed Jan 18 14:09:59 2017
New Revision: 292433
URL: http://llvm.org/viewvc/llvm-project?rev=292433&view=rev
Log:
[InstCombine] remove a redundant check; NFCI
I missed deleting this check when I refactored this chunk in:
https://reviews.llvm.org/rL292260
Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp?rev=292433&r1=292432&r2=292433&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp Wed Jan 18 14:09:59 2017
@@ -1939,8 +1939,6 @@ Instruction *InstCombiner::foldICmpShlCo
 
   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.
    
    
More information about the llvm-commits
mailing list