Revert r265309 and r265312 because they caused some errors I need to investigate.

llvm-svn: 265317
This commit is contained in:
Wei Mi
2016-04-04 17:45:03 +00:00
parent d575edb780
commit fb5252cac1
16 changed files with 1059 additions and 955 deletions

View File

@@ -153,12 +153,3 @@ void RegAllocBase::allocatePhysRegs() {
}
}
}
void RegAllocBase::postOptimization() {
spiller().postOptimization();
for (auto DeadInst : DeadRemats) {
LIS->RemoveMachineInstrFromMaps(*DeadInst);
DeadInst->eraseFromParent();
}
DeadRemats.clear();
}