mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Grow the map on entry so that we don't crash if joinIntervals never
runs (if coalescing is disabled for example). llvm-svn: 16259
This commit is contained in:
parent
81cba8dcd2
commit
4117e2a7a9
@ -88,6 +88,7 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
|
||||
mri_ = tm_->getRegisterInfo();
|
||||
lv_ = &getAnalysis<LiveVariables>();
|
||||
allocatableRegs_ = mri_->getAllocatableSet(fn);
|
||||
r2rMap_.grow(mf_->getSSARegMap()->getLastVirtReg());
|
||||
|
||||
// number MachineInstrs
|
||||
unsigned miIndex = 0;
|
||||
@ -619,8 +620,6 @@ namespace {
|
||||
|
||||
void LiveIntervals::joinIntervals() {
|
||||
DEBUG(std::cerr << "********** JOINING INTERVALS ***********\n");
|
||||
// reserve space for the reg2reg map
|
||||
r2rMap_.grow(mf_->getSSARegMap()->getLastVirtReg());
|
||||
|
||||
const LoopInfo &LI = getAnalysis<LoopInfo>();
|
||||
if (LI.begin() == LI.end()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user