[Mlir-commits] [mlir] [MLIR][Vector] Added ToElementsOp::fold for broadcast->to_elements pattern rewrite. (PR #160318)
Diego Caballero
llvmlistbot at llvm.org
Tue Sep 30 11:01:51 PDT 2025
================
@@ -2395,9 +2396,39 @@ foldToElementsFromElements(ToElementsOp toElementsOp,
return success();
}
+/// Folds vector.to_elements(vector.broadcast(%x)) for the scalar case only.
+///
+/// takes a scalar %x: replicate the scalar across all results.
----------------
dcaballe wrote:
Something seems off in this comment.
https://github.com/llvm/llvm-project/pull/160318
More information about the Mlir-commits
mailing list