[flang-commits] [flang] [Flang]Add support for inlining hlfir.assign operation where both LHS and RHS are slices of the same array (PR #204532)
via flang-commits
flang-commits at lists.llvm.org
Tue Jun 23 09:23:26 PDT 2026
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 origin/main HEAD --extensions cpp,h -- flang/include/flang/Optimizer/Analysis/ArraySectionAnalyzer.h flang/include/flang/Optimizer/Builder/FIRBuilder.h flang/lib/Optimizer/Builder/FIRBuilder.cpp flang/lib/Optimizer/HLFIR/Transforms/InlineHLFIRAssign.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/include/flang/Optimizer/Analysis/ArraySectionAnalyzer.h b/flang/include/flang/Optimizer/Analysis/ArraySectionAnalyzer.h
index 9751f92bc..aae9cbde2 100644
--- a/flang/include/flang/Optimizer/Analysis/ArraySectionAnalyzer.h
+++ b/flang/include/flang/Optimizer/Analysis/ArraySectionAnalyzer.h
@@ -14,9 +14,9 @@
#include "llvm/ADT/STLFunctionalExtras.h"
namespace mlir {
- class Operation;
- class Value;
- } // namespace mlir
+class Operation;
+class Value;
+} // namespace mlir
namespace hlfir {
class ElementalOpInterface;
``````````
</details>
https://github.com/llvm/llvm-project/pull/204532
More information about the flang-commits
mailing list