[llvm] [InstCombine] Allow folding cross-lane operations into PHIs/selects (PR #164388)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 21 07:24:34 PDT 2025


================
@@ -1821,6 +1822,9 @@ Instruction *InstCombinerImpl::FoldOpIntoSelect(Instruction &Op, SelectInst *SI,
   if (!NewTV && !NewFV)
     return nullptr;
 
+  if (SimplifyBothArms)
----------------
dtcxzyw wrote:

```suggestion
  if (SimplifyBothArms && !(NewTV && NewFV))
```
Missing check?


https://github.com/llvm/llvm-project/pull/164388


More information about the llvm-commits mailing list