[llvm] [X86,SimplifyCFG] Support conditional faulting load or store only (PR #132032)
    Shengchen Kan via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Mar 20 04:43:23 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)"));
----------------
KanRobert wrote:
Quite strange here. Probably we should split `hasConditionalLoadStoreForType` to hasConditionalLoadForType and hasConditionalStoreForType
https://github.com/llvm/llvm-project/pull/132032
    
    
More information about the llvm-commits
mailing list