[llvm] [Delinearization] Add function for fixed size array without relying on GEP (PR #145050)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 20 08:14:15 PDT 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 HEAD~1 HEAD --extensions cpp,h -- llvm/include/llvm/Analysis/Delinearization.h llvm/lib/Analysis/Delinearization.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Analysis/Delinearization.cpp b/llvm/lib/Analysis/Delinearization.cpp
index 30400b4e3..758a6f25a 100644
--- a/llvm/lib/Analysis/Delinearization.cpp
+++ b/llvm/lib/Analysis/Delinearization.cpp
@@ -771,7 +771,8 @@ void printDelinearization(raw_ostream &O, Function *F, LoopInfo *LI,
       if (UseFixedSizeArrayHeuristic && IsDelinearizationFailed()) {
         Subscripts.clear();
         Sizes.clear();
-        delinearizeFixedSizeArray(*SE, AccessFn, Subscripts, Sizes, SE->getElementSize(&Inst));
+        delinearizeFixedSizeArray(*SE, AccessFn, Subscripts, Sizes,
+                                  SE->getElementSize(&Inst));
       }
 
       if (IsDelinearizationFailed()) {

``````````

</details>


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


More information about the llvm-commits mailing list