mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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:
parent
326ae27c4f
commit
6a72c84b16
@ -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…
Reference in New Issue
Block a user