parent
7df67fced7
commit
96ff4d6d3b
|
@ -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