[llvm] r183461 - Simplify code. No functionality change.
Jakub Staszak
kubastaszak at gmail.com
Thu Jun 6 16:34:59 PDT 2013
Author: kuba
Date: Thu Jun 6 18:34:59 2013
New Revision: 183461
URL: http://llvm.org/viewvc/llvm-project?rev=183461&view=rev
Log:
Simplify code. No functionality change.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp?rev=183461&r1=183460&r2=183461&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp Thu Jun 6 18:34:59 2013
@@ -616,8 +616,7 @@ bool InstCombiner::SimplifyDivRemOfSelec
*I = SI->getOperand(NonNullOperand);
Worklist.Add(BBI);
} else if (*I == SelectCond) {
- *I = NonNullOperand == 1 ? ConstantInt::getTrue(BBI->getContext()) :
- ConstantInt::getFalse(BBI->getContext());
+ *I = Builder->getInt1(NonNullOperand == 1);
Worklist.Add(BBI);
}
}
More information about the llvm-commits
mailing list