1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Simplify code. No functionality change.

llvm-svn: 183461
This commit is contained in:
Jakub Staszak 2013-06-06 23:34:59 +00:00
parent df12041c3b
commit 0c829ecc2b

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);
}
}