mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Added an assert to the PBQP allocator to catch infinite cost solutions which might otherwise lead to miscompilations.
llvm-svn: 88829
This commit is contained in:
parent
a812eb66b3
commit
4d30650e61
@ -693,6 +693,11 @@ void PBQPRegAlloc::addStackInterval(const LiveInterval *spilled,
|
||||
}
|
||||
|
||||
bool PBQPRegAlloc::mapPBQPToRegAlloc(const PBQP::Solution &solution) {
|
||||
|
||||
// Assert that this is a valid solution to the regalloc problem.
|
||||
assert(solution.getCost() != std::numeric_limits<PBQP::PBQPNum>::infinity() &&
|
||||
"Invalid (infinite cost) solution for PBQP problem.");
|
||||
|
||||
// Set to true if we have any spills
|
||||
bool anotherRoundNeeded = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user