Simplify code. No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183461 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakub Staszak 2013-06-06 23:34:59 +00:00
parent 326ae27c4f
commit 6a72c84b16

View File

@ -616,8 +616,7 @@ bool InstCombiner::SimplifyDivRemOfSelect(BinaryOperator &I) {
*I = SI->getOperand(NonNullOperand); *I = SI->getOperand(NonNullOperand);
Worklist.Add(BBI); Worklist.Add(BBI);
} else if (*I == SelectCond) { } else if (*I == SelectCond) {
*I = NonNullOperand == 1 ? ConstantInt::getTrue(BBI->getContext()) : *I = Builder->getInt1(NonNullOperand == 1);
ConstantInt::getFalse(BBI->getContext());
Worklist.Add(BBI); Worklist.Add(BBI);
} }
} }