[Mlir-commits] [mlir] [MLIR][Vector] Add support for inner-parallel masked multi-reductions (PR #126722)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Feb 12 02:56:11 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff e258bca9505f35e0a22cb213a305eea9b76d11ea 6c94d5e1568f087710e0e96cad22fefe953aa69e --extensions cpp -- mlir/lib/Dialect/Vector/Transforms/LowerVectorMultiReduction.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Dialect/Vector/Transforms/LowerVectorMultiReduction.cpp b/mlir/lib/Dialect/Vector/Transforms/LowerVectorMultiReduction.cpp
index fa2c2d3b55..ce524b259d 100644
--- a/mlir/lib/Dialect/Vector/Transforms/LowerVectorMultiReduction.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/LowerVectorMultiReduction.cpp
@@ -345,8 +345,9 @@ struct TwoDimMultiReductionToElementWise
       if (mask) {
         extractMask = rewriter.create<vector::ExtractOp>(loc, mask, i);
       }
-      result = makeArithReduction(rewriter, loc, multiReductionOp.getKind(),
-                                  operand, result, /*fastmath=*/ nullptr, extractMask);
+      result =
+          makeArithReduction(rewriter, loc, multiReductionOp.getKind(), operand,
+                             result, /*fastmath=*/nullptr, extractMask);
     }
 
     rewriter.replaceOp(rootOp, result);

``````````

</details>


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


More information about the Mlir-commits mailing list