[llvm] [X86][APX] Reset SubReg for dst and check isVirtual before getInterval/getPhys (PR #191765)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 17 12:35:19 PDT 2026
================
@@ -1106,8 +1106,11 @@ foldMemoryOperand(ArrayRef<std::pair<MachineInstr *, unsigned>> Ops,
LIS.InsertMachineInstrInMaps(MI);
if (CopyMI) {
- LiveInterval &LI = LIS.getInterval(CopyMI->getOperand(1).getReg());
- LIS.shrinkToUses(&LI);
+ Register R = CopyMI->getOperand(1).getReg();
----------------
arsenm wrote:
Oh, so this is only for the reserved physreg case? Probably can get away with asserting the physreg is reserved
https://github.com/llvm/llvm-project/pull/191765
More information about the llvm-commits
mailing list