[llvm] r175273 - Fix refactoring mistake in "Teach InstCombine to work with smaller legal types..."

Arnaud A. de Grandmaison arnaud.adegm at gmail.com
Fri Feb 15 07:18:17 PST 2013


Author: aadg
Date: Fri Feb 15 09:18:17 2013
New Revision: 175273

URL: http://llvm.org/viewvc/llvm-project?rev=175273&view=rev
Log:
Fix refactoring mistake in "Teach InstCombine to work with smaller legal types..."

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=175273&r1=175272&r2=175273&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp Fri Feb 15 09:18:17 2013
@@ -1347,7 +1347,7 @@ Instruction *InstCombiner::visitICmpInst
                         NTy);
       return new ICmpInst(ICI.getPredicate(),
                           Builder->CreateTrunc(LHSI->getOperand(0), NTy),
-                          ConstantExpr::getTrunc(NCI, NTy));
+                          NCI);
     }
 
     break;





More information about the llvm-commits mailing list