[flang-commits] [flang] [Flang] Generate inline reduction loops for elemental count intrinsics (PR #75774)
via flang-commits
flang-commits at lists.llvm.org
Mon Dec 18 01:18:17 PST 2023
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 9bb47f7f8bcc17d90763d201f383d28489b9b071 1d0c5b2a58c8138bf21fe139241d232469ee7e29 -- flang/lib/Optimizer/HLFIR/Transforms/OptimizedBufferization.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Optimizer/HLFIR/Transforms/OptimizedBufferization.cpp b/flang/lib/Optimizer/HLFIR/Transforms/OptimizedBufferization.cpp
index 59a3a433d5..716a4b67e0 100644
--- a/flang/lib/Optimizer/HLFIR/Transforms/OptimizedBufferization.cpp
+++ b/flang/lib/Optimizer/HLFIR/Transforms/OptimizedBufferization.cpp
@@ -705,7 +705,8 @@ static mlir::Value generateReductionLoop(fir::FirOpBuilder &builder,
/// %e = hlfir.elemental %shape unordered
/// %r = hlfir.count %e
/// =>
-/// %r = for.do_loop %arg = 1 to bound(%shape) step 1 iter_args(%arg2 = init) {
+/// %r = for.do_loop %arg = 1 to bound(%shape) step 1 iter_args(%arg2 = init)
+/// {
/// <inline elemental>
/// <reduce count>
/// }
``````````
</details>
https://github.com/llvm/llvm-project/pull/75774
More information about the flang-commits
mailing list