diff options
author | Quentin Colombet <qcolombet@apple.com> | 2014-02-13 05:17:37 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2014-02-13 05:17:37 +0000 |
commit | 0e3b5e0b20698558be7a30b42f3d245bf6a4af54 (patch) | |
tree | 1bb4bc27b91248114c1cead5482e17cecb79dfbe /llvm/lib/CodeGen | |
parent | 75ec01f3ded36dc65a9a2e3e8039151587d65495 (diff) | |
download | bcm5719-llvm-0e3b5e0b20698558be7a30b42f3d245bf6a4af54.tar.gz bcm5719-llvm-0e3b5e0b20698558be7a30b42f3d245bf6a4af54.zip |
[RegAlloc] Fix the assertion in the last chance recoloring to match the
condition at the call site.
llvm-svn: 201296
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocGreedy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index b969dd71757..3c3f622759f 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -1931,7 +1931,7 @@ unsigned RAGreedy::tryLastChanceRecoloring(LiveInterval &VirtReg, unsigned Depth) { DEBUG(dbgs() << "Try last chance recoloring for " << VirtReg << '\n'); // Ranges must be Done. - assert(getStage(VirtReg) >= RS_Done && + assert((getStage(VirtReg) >= RS_Done || !VirtReg.isSpillable()) && "Last chance recoloring should really be last chance"); // Set the max depth to LastChanceRecoloringMaxDepth. // We may want to reconsider that if we end up with a too large search space |