[llvm] [X86,SimplifyCFG] Support conditional faulting load or store only (PR #132032)

via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 20 06:40:53 PDT 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 215c47e4d3b26b780c7019c050bcae874ca2084d ff8789f5e47f8bbfc65094718b74946aec3bb999 --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 2d18b7c9d7..f24e2560ec 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -121,13 +121,11 @@ static cl::opt<bool>
                 cl::desc("Hoist common instructions up to the parent block"));
 
 static cl::opt<bool> HoistLoadsWithCondFaulting(
-    "simplifycfg-hoist-loads-with-cond-faulting", cl::Hidden,
-    cl::init(true),
+    "simplifycfg-hoist-loads-with-cond-faulting", cl::Hidden, cl::init(true),
     cl::desc("Hoist loads if the target supports conditional faulting"));
 
 static cl::opt<bool> HoistStoresWithCondFaulting(
-    "simplifycfg-hoist-stores-with-cond-faulting", cl::Hidden,
-    cl::init(true),
+    "simplifycfg-hoist-stores-with-cond-faulting", cl::Hidden, cl::init(true),
     cl::desc("Hoist stores if the target supports conditional faulting"));
 
 static cl::opt<unsigned> HoistLoadsStoresWithCondFaultingThreshold(

``````````

</details>


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


More information about the llvm-commits mailing list