Simplify code. No functionality change.

llvm-svn: 183461
This commit is contained in:
Jakub Staszak 2013-06-06 23:34:59 +00:00
parent 7df67fced7
commit 96ff4d6d3b
1 changed files with 1 additions and 2 deletions

View File

@ -616,8 +616,7 @@ bool InstCombiner::SimplifyDivRemOfSelect(BinaryOperator &I) {
*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);
}
}