No need to clear the map here, it will always be empty
[oota-llvm.git] / lib / CodeGen / RegAllocLocal.cpp
index f3753326ee4a6ecb788c18283f97e54a8f3cf976..37d600ef81d33cb6a09f4e297b6adcf3a7b6c6aa 100644 (file)
@@ -683,7 +683,6 @@ bool RA::runOnMachineFunction(MachineFunction &Fn) {
 
   // initialize the virtual->physical register map to have a 'null'
   // mapping for all virtual registers
-  Virt2PhysRegMap.clear();
   Virt2PhysRegMap.grow(MF->getSSARegMap()->getLastVirtReg());
 
   // Loop over all of the basic blocks, eliminating virtual register references