[llvm] [InstCombine] Fold its select user into select (PR #83405)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 18 05:06:47 PDT 2024
================
@@ -519,9 +519,13 @@ static bool simplifySeqSelectWithSameCond(SelectInst &SI,
Value *CondNext;
while (match(ValOp, m_Select(m_Value(CondNext), m_Value(), m_Value()))) {
if (CondNext == CondVal)
- if (Value *S = simplifyWithOpReplaced(ValOp, CondVal, RepOp, SQ,
- /* AllowRefinement */ true)) {
- IC.replaceOperand(*SINext, OpIndex, S);
+ if (simplifyWithOpReplaced(ValOp, CondVal, RepOp, SQ,
+ /* AllowRefinement */ true)) {
----------------
arsenm wrote:
```suggestion
/*AllowRefinement=*/ true)) {
```
https://github.com/llvm/llvm-project/pull/83405
More information about the llvm-commits
mailing list