[llvm] [X86, SimplifyCFG] Support hoisting load/store with conditional faulting (Part II) (PR #108812)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 00:55:24 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 c9e5c42ad1bba84670d6f7ebe7859f4f12063c5a d6d50c4abf9636bd2f21b924193e0fa680f37ec6 --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 91ae73fae0..066b899b57 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -1801,8 +1801,8 @@ bool SimplifyCFGOpt::hoistCommonCodeFromSuccessors(Instruction *TI,
             return false;
           continue;
         } else if (!isSafeCheapLoadStore(&I, TTI) ||
-            SpeculatedConditionalLoadsStores.size() ==
-                HoistLoadsStoresWithCondFaultingThreshold) {
+                   SpeculatedConditionalLoadsStores.size() ==
+                       HoistLoadsStoresWithCondFaultingThreshold) {
           return false;
         }
         SpeculatedConditionalLoadsStores.push_back(&I);

``````````

</details>


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


More information about the llvm-commits mailing list