diff options
Diffstat (limited to 'llvm/lib/CodeGen/InlineSpiller.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/InlineSpiller.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp index 8964853e9fd..1b1cd68e226 100644 --- a/llvm/lib/CodeGen/InlineSpiller.cpp +++ b/llvm/lib/CodeGen/InlineSpiller.cpp @@ -573,5 +573,6 @@ void InlineSpiller::spill(LiveRangeEdit &edit) { MI->eraseFromParent(); } - // FIXME: Notify the register allocator that the snippets are now dead. + for (unsigned i = 0, e = RegsToSpill.size(); i != e; ++i) + edit.eraseVirtReg(RegsToSpill[i], lis_); } |

