VirtRegMap: Support partially allocated virtual registers
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 25 Oct 2018 21:47:57 +0000 (14:47 -0700)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 30 Apr 2021 01:51:05 +0000 (21:51 -0400)
commit55a29c6b71c9b80353ccb17c0dd15dde5c9940b3
tree9dc1d8d1c5ebd4b8e19d911a353a3ba2a1618dc8
parent1141ba677e09156daec8ef31d3dcdae7f59f60c5
VirtRegMap: Support partially allocated virtual registers

Don't assert if there are unassigned virtual registers.  Maintain
LiveIntervals by removing the RegUnits for allocated registers, since
they should not longer be necessary.

One part I find somewhat questionable is the special handling
necessary for handleIdentityCopy. The LiveIntervals for the relevant
regunits needs to be removed.
llvm/lib/CodeGen/VirtRegMap.cpp