forked from OSchip/llvm-project
parent
c638cd21fb
commit
6b699f863f
|
@ -503,7 +503,7 @@ Instruction *InstCombiner::commonIRemTransforms(BinaryOperator &I) {
|
|||
if (isa<SelectInst>(Op1) && SimplifyDivRemOfSelect(I))
|
||||
return &I;
|
||||
|
||||
if (ConstantInt *RHS = dyn_cast<ConstantInt>(Op1)) {
|
||||
if (isa<ConstantInt>(Op1)) {
|
||||
if (Instruction *Op0I = dyn_cast<Instruction>(Op0)) {
|
||||
if (SelectInst *SI = dyn_cast<SelectInst>(Op0I)) {
|
||||
if (Instruction *R = FoldOpIntoSelect(I, SI))
|
||||
|
|
Loading…
Reference in New Issue