[llvm] [DebugInfo][RemoveDIs] Avoid crash and output-difference in loop-rotate (PR #74093)

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 07:50:12 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 39d15a7d3bc6bca4c2ad0fc432ba757eb9b8338c 2ed9d056a88a36cdbafa5de71802485b1eb64872 -- llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
index c6007aeac3..76280ed492 100644
--- a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
@@ -563,7 +563,8 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) {
 
     // Build DPValue hashes for DPValues attached to the terminator, which isn't
     // considered in the loop above.
-    for (const DPValue &DPV : OrigPreheader->getTerminator()->getDbgValueRange())
+    for (const DPValue &DPV :
+         OrigPreheader->getTerminator()->getDbgValueRange())
       DbgIntrinsics.insert(makeHash(&DPV));
 
     // Remember the local noalias scope declarations in the header. After the

``````````

</details>


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


More information about the llvm-commits mailing list