mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
RegisterPressure: Improve assert message
llvm-svn: 251885
This commit is contained in:
parent
6a0bab40ee
commit
3795aef91e
@ -862,7 +862,8 @@ getUpwardPressureDelta(const MachineInstr *MI, /*const*/ PressureDiff &PDiff,
|
||||
unsigned MNew = MOld;
|
||||
// Ignore DeadDefs here because they aren't captured by PressureChange.
|
||||
unsigned PNew = POld + PDiffI->getUnitInc();
|
||||
assert((PDiffI->getUnitInc() >= 0) == (PNew >= POld) && "PSet overflow");
|
||||
assert((PDiffI->getUnitInc() >= 0) == (PNew >= POld)
|
||||
&& "PSet overflow/underflow");
|
||||
if (PNew > MOld)
|
||||
MNew = PNew;
|
||||
// Check if current pressure has exceeded the limit.
|
||||
|
Loading…
Reference in New Issue
Block a user