Jakob Stoklund Olesen 42e9c96392 Remove MachineRegisterInfo::getLastVirtReg(), it was giving wrong results
when no virtual registers have been allocated.

It was only used to resize IndexedMaps, so provide an IndexedMap::resize()
method such that

 Map.grow(MRI.getLastVirtReg());

can be replaced with the simpler

 Map.resize(MRI.getNumVirtRegs());

This works correctly when no virtuals are allocated, and it bypasses the to/from
index conversions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123130 91177308-0d34-0410-b5e6-96231b3b80d8
2011-01-09 21:58:20 +00:00
..
2010-07-14 22:38:02 +00:00
2010-11-26 18:25:20 +00:00
2010-06-09 03:00:05 +00:00
2010-11-29 18:16:10 +00:00
2010-11-29 18:16:10 +00:00
2011-01-03 03:16:20 +00:00
2010-11-29 18:16:10 +00:00
2010-11-29 18:16:10 +00:00
2010-08-30 18:31:44 +00:00
2010-11-29 18:16:10 +00:00
2010-07-23 03:21:53 +00:00
2010-11-27 18:20:30 +00:00
2010-11-29 18:16:10 +00:00