[Mlir-commits] [mlir] [mlir] [vector] Allow element/broadcast re-order for FMA if the source is a vector (PR #211208)
Diego Caballero
llvmlistbot at llvm.org
Fri Jul 24 04:23:08 PDT 2026
================
@@ -195,24 +195,91 @@ func.func @source_and_result_mismatch(%arg0 : f32) -> vector<1xi1> {
// -----
-// vector.fma only supports vectors - currently it's not possible to replace this with e.g.:
+// vector.fma only supports vectors - when the broadcast source is a scalar,
+// currently it's not possible to replace this with e.g.:
// %scalar_res = vector.fma %scalar_1, %scalar2
// %vec_res = vector.broadcast %scalar_res
//
-// TODO: It should be possible to support this case
+// TODO: It should be possible to support this case by rewriting to math.fma
----------------
dcaballe wrote:
Same
https://github.com/llvm/llvm-project/pull/211208
More information about the Mlir-commits
mailing list