Add support for index resources (for a SlotIndex) to be relinquished.
authorLang Hames <lhames@gmail.com>
Fri, 19 Apr 2013 04:31:49 +0000 (04:31 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 19 Apr 2013 04:31:49 +0000 (04:31 +0000)
commit64362272b6bcbc6ea72784d08fa86045877a3c15
tree777fe95b7de35e7e1888e87eff944901de2cb0e8
parent0ee17006b1b65204ab95360b98d04304bf206c59
Add support for index resources (for a SlotIndex) to be relinquished.

When the SlotIndexes pass was introduced it was intended to support insertion
of code during register allocation. Removal of code was a minor consideration
(and raised the question of what to do about dangling SlotIndex objects pointing
to the erased index), so I opted to keep all indexes around indefinitely and
simply null out those that weren't being used.

Nowadays people are moving more code around (e.g. via HandleMove), which means
more zombie indexes. I want to start killing off indexes when we're done with
them to reclaim the resources they use up.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179834 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SlotIndexes.h