mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +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:
1 parent
326ae27c4f
commit
6a72c84b16
1 file changed
+1
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user