mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
[RegAlloc] Fix the assertion in the last chance recoloring to match the
condition at the call site. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201296 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
17c9169bbd
commit
126099ea23
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user