[llvm] [X86] Add MI-layer routine for getting the index of the first address operand (PR #78019)
Nicholas Mosier via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 13 12:03:59 PST 2024
================
@@ -1365,7 +1358,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:
Removed. That got in there by mistake (it's from a different patch).
https://github.com/llvm/llvm-project/pull/78019
More information about the llvm-commits
mailing list