mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
[PBQP] Conservativelly allocatable nodes can be spilled and give a better solution
Although such nodes are allocatable, the cost of spilling may be less than allocating to register, so spilling the node may provide a better solution. The assert does not account for this case, so remove it for now. llvm-svn: 229103
This commit is contained in:
parent
88288c494b
commit
b1fde3b904
@ -257,9 +257,6 @@ public:
|
||||
assert(RS >= this->RS && "A node's reduction state can not be downgraded");
|
||||
this->RS = RS;
|
||||
}
|
||||
bool isSpillable() const {
|
||||
return RS == NotProvablyAllocatable || RS == OptimallyReducible;
|
||||
}
|
||||
|
||||
void handleAddEdge(const MatrixMetadata& MD, bool Transpose) {
|
||||
DeniedOpts += Transpose ? MD.getWorstRow() : MD.getWorstCol();
|
||||
|
@ -621,8 +621,6 @@ bool RegAllocPBQP::mapPBQPToRegAlloc(const PBQPRAGraph &G,
|
||||
assert(PReg != 0 && "Invalid preg selected.");
|
||||
VRM.assignVirt2Phys(VReg, PReg);
|
||||
} else {
|
||||
assert(G.getNodeMetadata(NId).isSpillable() &&
|
||||
"Spilling a node which can not be spilled.");
|
||||
// Spill VReg. If this introduces new intervals we'll need another round
|
||||
// of allocation.
|
||||
SmallVector<unsigned, 8> NewVRegs;
|
||||
|
Loading…
Reference in New Issue
Block a user