[llvm] [AArch64] Add an AArch64 pass for loop idiom transformations (PR #72273)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 07:51:29 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 d554355dce523ec4e06305519b83161beca0f417 c160c3c65107d5b1b2993972bce903304d4860e6 -- llvm/lib/Target/AArch64/AArch64LoopIdiomTransform.cpp llvm/lib/Target/AArch64/AArch64LoopIdiomTransform.h llvm/include/llvm/Analysis/TargetTransformInfo.h llvm/include/llvm/Analysis/TargetTransformInfoImpl.h llvm/lib/Analysis/TargetTransformInfo.cpp llvm/lib/Target/AArch64/AArch64.h llvm/lib/Target/AArch64/AArch64TargetMachine.cpp llvm/lib/Target/AArch64/AArch64TargetMachine.h llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64LoopIdiomTransform.cpp b/llvm/lib/Target/AArch64/AArch64LoopIdiomTransform.cpp
index c4d2529a3e..7efb957573 100644
--- a/llvm/lib/Target/AArch64/AArch64LoopIdiomTransform.cpp
+++ b/llvm/lib/Target/AArch64/AArch64LoopIdiomTransform.cpp
@@ -328,8 +328,8 @@ bool AArch64LoopIdiomTransform::recognizeByteCompare() {
 
   // The index is incremented before the GEP/Load pair so we need to
   // add 1 to the start value.
-  transformByteCompare(GEPA, GEPB, MaxLen, Index, StartIdx, /*IncIdx=*/true, FoundBB,
-                       EndBB);
+  transformByteCompare(GEPA, GEPB, MaxLen, Index, StartIdx, /*IncIdx=*/true,
+                       FoundBB, EndBB);
   return true;
 }
 

``````````

</details>


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


More information about the llvm-commits mailing list