@@ -4621,16 +4621,16 @@ static Value *simplifySelectWithEquivalence(
4621
4621
ArrayRef<std::pair<Value *, Value *>> Replacements, Value *TrueVal,
4622
4622
Value *FalseVal, const SimplifyQuery &Q, unsigned MaxRecurse) {
4623
4623
Value *SimplifiedFalseVal =
4624
- simplifyWithOpReplaced (FalseVal, Replacements, Q.getWithoutUndef (),
4625
- /* AllowRefinement */ false ,
4626
- /* DropFlags */ nullptr , MaxRecurse);
4624
+ simplifyWithOpsReplaced (FalseVal, Replacements, Q.getWithoutUndef (),
4625
+ /* AllowRefinement */ false ,
4626
+ /* DropFlags */ nullptr , MaxRecurse);
4627
4627
if (!SimplifiedFalseVal)
4628
4628
SimplifiedFalseVal = FalseVal;
4629
4629
4630
4630
Value *SimplifiedTrueVal =
4631
- simplifyWithOpReplaced (TrueVal, Replacements, Q,
4632
- /* AllowRefinement */ true ,
4633
- /* DropFlags */ nullptr , MaxRecurse);
4631
+ simplifyWithOpsReplaced (TrueVal, Replacements, Q,
4632
+ /* AllowRefinement */ true ,
4633
+ /* DropFlags */ nullptr , MaxRecurse);
4634
4634
if (!SimplifiedTrueVal)
4635
4635
SimplifiedTrueVal = TrueVal;
4636
4636
@@ -4744,12 +4744,6 @@ static Value *simplifySelectWithICmpCond(Value *CondVal, Value *TrueVal,
4744
4744
if (Value *V = simplifySelectWithEquivalence (
4745
4745
{{X, CmpRHS}, {Y, CmpRHS}}, TrueVal, FalseVal, Q, MaxRecurse))
4746
4746
return V;
4747
- if (Value *V = simplifySelectWithEquivalence ({{X, CmpRHS}}, TrueVal,
4748
- FalseVal, Q, MaxRecurse))
4749
- return V;
4750
- if (Value *V = simplifySelectWithEquivalence ({{Y, CmpRHS}}, TrueVal,
4751
- FalseVal, Q, MaxRecurse))
4752
- return V;
4753
4747
}
4754
4748
4755
4749
// select((X & Y) == -1 ? X : -1) --> -1 (commuted 2 ways)
@@ -4759,12 +4753,6 @@ static Value *simplifySelectWithICmpCond(Value *CondVal, Value *TrueVal,
4759
4753
if (Value *V = simplifySelectWithEquivalence (
4760
4754
{{X, CmpRHS}, {Y, CmpRHS}}, TrueVal, FalseVal, Q, MaxRecurse))
4761
4755
return V;
4762
- if (Value *V = simplifySelectWithEquivalence ({{X, CmpRHS}}, TrueVal,
4763
- FalseVal, Q, MaxRecurse))
4764
- return V;
4765
- if (Value *V = simplifySelectWithEquivalence ({{Y, CmpRHS}}, TrueVal,
4766
- FalseVal, Q, MaxRecurse))
4767
- return V;
4768
4756
}
4769
4757
}
4770
4758
0 commit comments