[llvm] [X86] Support hoisting load/store with conditional faulting (PR #95515)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 23 20:11:43 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:
Maybe:
`isa<LoadInst>(I) && isa<AllocaInst>(getUnderlyingObject(I.getOperand(0))`
https://github.com/llvm/llvm-project/pull/95515
More information about the llvm-commits
mailing list