[llvm] [InstCombine] Propagate demanded elements through fma/fmuladd (PR #221495)

Hugo Pompougnac via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 7 01:54:45 PDT 2026


================
@@ -1992,6 +1992,18 @@ Value *InstCombinerImpl::SimplifyDemandedVectorElts(Value *V,
       PoisonElts = PoisonElts2 & PoisonElts3;
       break;
     }
+    case Intrinsic::fma:
+    case Intrinsic::fmuladd: {
----------------
qaco wrote:

Ok done, thanks for the advice. As an extra gift it now improves minmax-fold !

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


More information about the llvm-commits mailing list