[llvm] [LoopIdiomRecognize] Fix #82582: Wrong debug location updates in LoopIdiomRecognize (PR #82608)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 02:49:44 PST 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 8bd327d6fed5a4ae99bdbd039f5503700030cf53 5de52b45f83beab8e9227df727677a36ff75475c -- llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
index 5359b580de..ef5ad4b663 100644
--- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
@@ -1418,7 +1418,7 @@ bool LoopIdiomRecognize::processLoopStoreOfLoopLoad(
         StoreBasePtr, *StoreAlign, LoadBasePtr, *LoadAlign, NumBytes, StoreSize,
         AATags.TBAA, AATags.TBAAStruct, AATags.Scope, AATags.NoAlias);
   }
-  
+
   NewCall->dropLocation();
 
   if (MSSAU) {

``````````

</details>


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


More information about the llvm-commits mailing list