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:
parent
df12041c3b
commit
0c829ecc2b
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user