[llvm] [CodeGen][RAGreedy] Inform LiveDebugVariables about snippets spilled by InlineSpiller. (PR #109962)

Bevin Hansson via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 06:02:59 PDT 2024


================
@@ -805,6 +812,7 @@ void InlineSpiller::reMaterializeAll() {
 
     RegsToSpill[ResultPos++] = Reg;
   }
+  RegsReplaced.assign(RegsToSpill.begin() + ResultPos, RegsToSpill.end());
----------------
bevin-hansson wrote:

I realize now that this can't be correct. It doesn't swap the regs into this area, it just copies the remaining ones down into the lower half. So, the rematted regs aren't preserved here.

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


More information about the llvm-commits mailing list