[Mlir-commits] [mlir] Reland Refactor LoopFuseSiblingOp and support parallel fusion #94391 (PR #97607)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jul 3 10:00:51 PDT 2024
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 37fe152e0c9f47b0a9ef9663df1ddecffef6f338 4e4a96e376aaf778d013d384dc3c2b9dab405f35 -- mlir/include/mlir/Dialect/SCF/Utils/Utils.h mlir/include/mlir/Interfaces/LoopLikeInterface.h mlir/lib/Dialect/SCF/IR/SCF.cpp mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp mlir/lib/Dialect/SCF/Transforms/ParallelLoopFusion.cpp mlir/lib/Dialect/SCF/Utils/Utils.cpp mlir/lib/Interfaces/LoopLikeInterface.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Interfaces/LoopLikeInterface.cpp b/mlir/lib/Interfaces/LoopLikeInterface.cpp
index effdf9d7ec..226815f792 100644
--- a/mlir/lib/Interfaces/LoopLikeInterface.cpp
+++ b/mlir/lib/Interfaces/LoopLikeInterface.cpp
@@ -146,7 +146,8 @@ LoopLikeOpInterface mlir::createFused(LoopLikeOpInterface target,
fusedLoop.getLoopInductionVars();
if (fusedInductionVar) {
if (!targetInductionVar || !sourceInductionVar)
- llvm_unreachable("expected target and source loops to have induction vars");
+ llvm_unreachable(
+ "expected target and source loops to have induction vars");
mapping.map(*targetInductionVar, *fusedInductionVar);
mapping.map(*sourceInductionVar, *fusedInductionVar);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/97607
More information about the Mlir-commits
mailing list