[llvm] [RegAlloc][X86] Rematerialization of instructions with physical register (PR #198853)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 13 05:35:35 PDT 2026
================
@@ -146,17 +146,43 @@ bool VirtRegAuxInfo::isRematerializable(const LiveInterval &LI,
return true;
}
-bool VirtRegAuxInfo::allUsesAvailableAt(const MachineInstr *MI,
+bool VirtRegAuxInfo::allUsesAvailableAt(const MachineInstr *OrigMI,
SlotIndex UseIdx,
const LiveIntervals &LIS,
const MachineRegisterInfo &MRI,
const TargetInstrInfo &TII) {
- SlotIndex OrigIdx = LIS.getInstructionIndex(*MI).getRegSlot(true);
+ SlotIndex OrigIdx = LIS.getInstructionIndex(*OrigMI).getRegSlot(true);
+ auto MBB = LIS.getMBBFromIndex(UseIdx);
----------------
arsenm wrote:
No auto
https://github.com/llvm/llvm-project/pull/198853
More information about the llvm-commits
mailing list