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

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 12 23:25:04 PDT 2024


================
@@ -2978,6 +2984,12 @@ static bool isProfitableToSpeculate(const BranchInst *BI, bool Invert,
   return BIEndProb < Likely;
 }
 
+static bool isSafeCheapLoadStore(const Instruction &I,
+                                 const TargetTransformInfo &TTI) {
+  return (isa<LoadInst>(I) || isa<StoreInst>(I)) &&
----------------
dtcxzyw wrote:

Is it safe to convert a volatile load/store into a masked load/store?


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


More information about the llvm-commits mailing list