[Mlir-commits] [mlir] Flag to guard MoveInitOperandsToInput in LinalgFoldUnitExtendDimsPass (PR #157941)

Javed Absar llvmlistbot at llvm.org
Fri Sep 19 09:29:39 PDT 2025


================
@@ -145,7 +145,10 @@ def LinalgFoldUnitExtentDimsPass : Pass<"linalg-fold-unit-extent-dims", ""> {
   let options = [
     Option<"useRankReducingSlices", "use-rank-reducing-slices", "bool",
            /*default=*/"false",
-           "Generate rank-reducing slices instead of reassociative reshapes">
+           "Generate rank-reducing slices instead of reassociative reshapes">,
+    Option<"enableMoveInitOperandsToInput", "enable-move-init-operands-to-input", "bool",
+           /*default=*/"true",
+           "Enable MoveInitOperandsToInputPattern transformation">
   ];
----------------
javedabsar1 wrote:

As you have made default 'true', this is NFC for  `if (enableMoveInitOperandsToInput) {`.
With that context, LGTM.

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


More information about the Mlir-commits mailing list