[llvm] [X86][APX] Update live internals of physical registers too (PR #192595)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 17 12:48:48 PDT 2026


================
@@ -1110,6 +1110,8 @@ foldMemoryOperand(ArrayRef<std::pair<MachineInstr *, unsigned>> Ops,
     if (R.isVirtual()) {
       LiveInterval &LI = LIS.getInterval(R);
       LIS.shrinkToUses(&LI);
+    } else {
+      LIS.removeAllRegUnitsForPhysReg(R.asMCReg());
----------------
arsenm wrote:

Repeating my comment from the previous PR, but can this only happen for reserved registers?

https://github.com/llvm/llvm-project/pull/192595


More information about the llvm-commits mailing list