mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Fix UnitTests/2005-05-12-Int64ToFP.c with llc-beta. In particular, do not
allow it to go into an infinite loop, filling up the disk! llvm-svn: 30494
This commit is contained in:
parent
cd52f85028
commit
66029d909b
@ -621,18 +621,21 @@ void RA::AllocateBasicBlock(MachineBasicBlock &MBB) {
|
||||
for (const unsigned *ImplicitDefs = TID.ImplicitDefs;
|
||||
*ImplicitDefs; ++ImplicitDefs) {
|
||||
unsigned Reg = *ImplicitDefs;
|
||||
if (PhysRegsUsed[Reg] == -2) continue;
|
||||
|
||||
spillPhysReg(MBB, MI, Reg, true);
|
||||
PhysRegsUseOrder.push_back(Reg);
|
||||
PhysRegsUsed[Reg] = 0; // It is free and reserved now
|
||||
bool IsNonAllocatable = PhysRegsUsed[Reg] == -2;
|
||||
if (!IsNonAllocatable) {
|
||||
spillPhysReg(MBB, MI, Reg, true);
|
||||
PhysRegsUseOrder.push_back(Reg);
|
||||
PhysRegsUsed[Reg] = 0; // It is free and reserved now
|
||||
}
|
||||
PhysRegsEverUsed[Reg] = true;
|
||||
|
||||
for (const unsigned *AliasSet = RegInfo->getAliasSet(Reg);
|
||||
*AliasSet; ++AliasSet) {
|
||||
if (PhysRegsUsed[*AliasSet] != -2) {
|
||||
PhysRegsUseOrder.push_back(*AliasSet);
|
||||
PhysRegsUsed[*AliasSet] = 0; // It is free and reserved now
|
||||
if (!IsNonAllocatable) {
|
||||
PhysRegsUseOrder.push_back(*AliasSet);
|
||||
PhysRegsUsed[*AliasSet] = 0; // It is free and reserved now
|
||||
}
|
||||
PhysRegsEverUsed[*AliasSet] = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user