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

via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 23 20:21:50 PDT 2024


================
@@ -2960,6 +2967,197 @@ static bool validateAndCostRequiredSelects(BasicBlock *BB, BasicBlock *ThenBB,
   return HaveRewritablePHIs;
 }
 
+static bool isLoadFromAlloca(const Instruction &I) {
+  return isa<LoadInst>(I) && isa<AllocaInst>(I.getOperand(0));
----------------
goldsteinn wrote:

I see now that this will also req checks that all intermediate operands dominate the br

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


More information about the llvm-commits mailing list