[llvm] [X86][SimplifyCFG] Support hoisting load/store with conditional faulting (PR #96878)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 17 01:48:50 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 b330d800cb7917e537b05a23febfe188401c5628 0b4c2068a65a63a47ad68edb5eb2a0b12d36ee71 --extensions cpp,h -- llvm/include/llvm/Transforms/Utils/SimplifyCFGOptions.h llvm/lib/CodeGen/TargetPassConfig.cpp llvm/lib/Passes/PassBuilder.cpp llvm/lib/Transforms/Scalar/SimplifyCFGPass.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/Scalar/SimplifyCFGPass.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
index c4bc925757..307fa0ec1f 100644
--- a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
+++ b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
@@ -329,7 +329,8 @@ static void applyCommandLineOverridesToOptions(SimplifyCFGOptions &Options) {
   if (UserHoistCommonInsts.getNumOccurrences())
     Options.HoistCommonInsts = UserHoistCommonInsts;
   if (UserHoistLoadsStoresWithCondFaulting.getNumOccurrences())
-    Options.HoistLoadsStoresWithCondFaulting = UserHoistLoadsStoresWithCondFaulting;
+    Options.HoistLoadsStoresWithCondFaulting =
+        UserHoistLoadsStoresWithCondFaulting;
   if (UserSinkCommonInsts.getNumOccurrences())
     Options.SinkCommonInsts = UserSinkCommonInsts;
 }

``````````

</details>


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


More information about the llvm-commits mailing list