[llvm] [DFAJumpThreading] Add an early exit heuristic for unpredictable values (PR #85015)

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 12 20:59:59 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 8c5e9cf737138aba22a4a8f64ef2c5efc80dd7f9 a84d7abb35adadfcc7580df9aaa9eea951a0c932 -- llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp b/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
index f4a7be87ad..768e018d70 100644
--- a/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
@@ -456,7 +456,8 @@ private:
         // compile time because a search for all the paths can become expensive.
         if (EarlyExitHeuristic && LI->getLoopFor(SI->getParent()) ==
                                       LI->getLoopFor(CurrentIncomingBB)) {
-          LLVM_DEBUG(dbgs() << "\tExiting early due to unpredictability heuristic.\n");
+          LLVM_DEBUG(dbgs()
+                     << "\tExiting early due to unpredictability heuristic.\n");
           return false;
         }
 

``````````

</details>


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


More information about the llvm-commits mailing list