[llvm] [WebAssembly] Lower fmuladd to fma (PR #161355)

Sam Parker via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 2 00:42:50 PDT 2025


================
@@ -103,9 +136,8 @@ define <4 x float> @fmuladd_4xf32(<4 x float> %a, <4 x float> %b, <4 x float> %c
 ; RELAXED-LABEL: fmuladd_4xf32:
 ; RELAXED:         .functype fmuladd_4xf32 (v128, v128, v128) -> (v128)
 ; RELAXED-NEXT:  # %bb.0:
-; RELAXED-NEXT:    f32x4.mul $push0=, $0, $1
-; RELAXED-NEXT:    f32x4.add $push1=, $pop0, $2
----------------
sparker-arm wrote:

You're talking about the change in TargetSelectionDAG.td, right? We don't need those patterns anymore since during DAG (lower/legalize/combine?) the fmuladd will, with relaxed-simd, no longer be broken into its constituent parts and instead it will be lowered to the FMA node.   

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


More information about the llvm-commits mailing list