[llvm] [Transform] Treat umul + extract pattern as cheap single instruction. (PR #124933)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 29 07:27:07 PST 2025


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 86e20b00c313e96db3b69d440bfb2ca9063f08f0 ef004473d02e867736e6940f05d03959eb480ebd --extensions cpp -- llvm/lib/Transforms/Utils/SimplifyCFG.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 5197db7028..bb7d4d88f3 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -3347,7 +3347,7 @@ bool SimplifyCFGOpt::speculativelyExecuteBB(BranchInst *BI,
     }
 
     BlockCostSoFar += computeSpeculationCost(&I, TTI);
-    if (! PatternFound && !IsSafeCheapLoadStore && !SpeculatedStoreValue &&
+    if (!PatternFound && !IsSafeCheapLoadStore && !SpeculatedStoreValue &&
         BlockCostSoFar >
             PHINodeFoldingThreshold * TargetTransformInfo::TCC_Basic)
       return false;

``````````

</details>


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


More information about the llvm-commits mailing list