diff --git a/include/llvm/CodeGen/RegAllocPBQP.h b/include/llvm/CodeGen/RegAllocPBQP.h index 80d232a215a..6d709d2b5e0 100644 --- a/include/llvm/CodeGen/RegAllocPBQP.h +++ b/include/llvm/CodeGen/RegAllocPBQP.h @@ -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(); diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index 0fb4ef62eff..bdc669ce4ef 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -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 NewVRegs;