[PBQP] Conservativelly allocatable nodes can be spilled and give a better solution
[oota-llvm.git] / lib / CodeGen / RegAllocPBQP.cpp
index 0fb4ef62eff936e6a39767bd6764ad55f31d3846..bdc669ce4eff14d040c722417f0c145194f8be04 100644 (file)
@@ -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;