[llvm] [LoopPeel] LCSSA form is destroyed by LoopPeel, preserve it (PR #78696)

via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 20 04:36:33 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 8bc0cbd6c73c3230102048798446fc751f0702d1 31d98719b41a8868865f91e293fe66029b78bf50 -- llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
index 4f9bbaaa02..58ea48ed76 100644
--- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
@@ -646,7 +646,7 @@ bool SimplifyIndvar::replaceIVUserWithLoopInvariant(Instruction *I) {
 
   if (!LI->replacementPreservesLCSSAForm(I, Invariant)) {
     LLVM_DEBUG(dbgs() << "INDVARS: Can not replace IV user: " << *I
-                      << " with loop invariant: "  << *S
+                      << " with loop invariant: " << *S
                       << " as it breaks LCSSA form " << '\n');
     return false;
   }

``````````

</details>


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


More information about the llvm-commits mailing list