[Mlir-commits] [mlir] [mlir][scf] Allow unrolling loops with integer-typed IV. (PR #106164)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Aug 26 17:45:42 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 657ec7320d8a28171755ba0dd5afc570a5a16791 488b3b62c7607dbb6805b0118b7dc7437d434757 --extensions cpp,h -- mlir/include/mlir/Dialect/Arith/Utils/Utils.h mlir/lib/Dialect/Arith/Utils/Utils.cpp mlir/lib/Dialect/SCF/Utils/Utils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/SCF/Utils/Utils.cpp b/mlir/lib/Dialect/SCF/Utils/Utils.cpp
index 49bda65bad2..7e1feced24a 100644
--- a/mlir/lib/Dialect/SCF/Utils/Utils.cpp
+++ b/mlir/lib/Dialect/SCF/Utils/Utils.cpp
@@ -391,7 +391,8 @@ LogicalResult mlir::loopUnrollByFactor(
generateEpilogueLoop = upperBoundUnrolledCst < ubCst;
if (generateEpilogueLoop)
upperBoundUnrolled = createIntOrIndexConstant(
- boundsBuilder, loc, forOp.getUpperBound().getType(), upperBoundUnrolledCst);
+ boundsBuilder, loc, forOp.getUpperBound().getType(),
+ upperBoundUnrolledCst);
else
upperBoundUnrolled = forOp.getUpperBound();
``````````
</details>
https://github.com/llvm/llvm-project/pull/106164
More information about the Mlir-commits
mailing list