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

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 20 05:52:55 PDT 2025


================
@@ -132,6 +132,11 @@ static cl::opt<unsigned> HoistLoadsStoresWithCondFaultingThreshold(
              "to speculatively execute to eliminate conditional branch "
              "(default = 6)"));
 
+static cl::opt<unsigned> DisableCloadCstore(
+    "disable-cload-cstore", cl::Hidden, cl::init(0),
+    cl::desc("Control to disable cond-faulting-load(1)/cond-faulting-store(2)"
+             "/all(3)"));
----------------
dtcxzyw wrote:

Similarly, we can split `--simplifycfg-hoist-loads-stores-with-cond-faulting` into two flags (if it has not been widely used by downstream projects).


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


More information about the llvm-commits mailing list