[llvm] [X86] Fix SLH crash on llvm.eh.sjlh.longjmp (PR #77959)
Nicholas Mosier via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 13 12:29:15 PST 2024
================
@@ -1365,7 +1365,7 @@ void X86SpeculativeLoadHardeningPass::tracePredStateThroughBlocksAndHarden(
// could prune out subsequent loads.
if (EnablePostLoadHardening && X86InstrInfo::isDataInvariantLoad(MI) &&
!isEFLAGSDefLive(MI) && MI.getDesc().getNumDefs() == 1 &&
- MI.getOperand(0).isReg() &&
+ MI.getOperand(0).isReg() && MI.getOperand(0).getReg().isVirtual() &&
----------------
nmosier wrote:
Done.
https://github.com/llvm/llvm-project/pull/77959
More information about the llvm-commits
mailing list