diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-13 01:23:11 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-13 01:23:11 +0000 |
| commit | 43a87501b35081069e1cd9cb1d99d969e44533d4 (patch) | |
| tree | 33c5cc5930928dad8ca4b89c24ce5a39a56e77fb /llvm/lib/CodeGen/InlineSpiller.cpp | |
| parent | 609e814a4a919e9daf155faba8ee2008f3169af4 (diff) | |
| download | bcm5719-llvm-43a87501b35081069e1cd9cb1d99d969e44533d4.tar.gz bcm5719-llvm-43a87501b35081069e1cd9cb1d99d969e44533d4.zip | |
Tell the register allocator about new unused virtual registers.
This allows the allocator to free any resources used by the virtual register,
including physical register assignments.
llvm-svn: 127560
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_); } |

