[llvm] efficient implementation of MachineOutliner::findCandidates() (PR #90258)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 12:48:53 PDT 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 b6824c9d459da059e247a60c1ebd1aeb580dacc2 a44426606e17dcde060febc0c3530d283521fc7f -- llvm/lib/CodeGen/MachineOutliner.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp
index b496355a7c..d553c0e6d2 100644
--- a/llvm/lib/CodeGen/MachineOutliner.cpp
+++ b/llvm/lib/CodeGen/MachineOutliner.cpp
@@ -624,10 +624,11 @@ void MachineOutliner::findCandidates(
           StartIdx <= CandidatesForRepeatedSeq.back().getEndIdx()) {
 #ifndef NDEBUG
         ++NumDiscarded;
-        LLVM_DEBUG(dbgs() << "    .. DISCARD candidate @ [" << StartIdx
-                          << ", " << EndIdx << "]; overlaps with candidate @ ["
-                          << CandidatesForRepeatedSeq.back().getStartIdx() << ", "
-                          << CandidatesForRepeatedSeq.back().getEndIdx() << "]\n");
+        LLVM_DEBUG(dbgs() << "    .. DISCARD candidate @ [" << StartIdx << ", "
+                          << EndIdx << "]; overlaps with candidate @ ["
+                          << CandidatesForRepeatedSeq.back().getStartIdx()
+                          << ", " << CandidatesForRepeatedSeq.back().getEndIdx()
+                          << "]\n");
 #endif
         continue;
       }

``````````

</details>


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


More information about the llvm-commits mailing list