diff options
author | Matthias Braun <matze@braunis.de> | 2015-11-03 01:53:36 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2015-11-03 01:53:36 +0000 |
commit | 6f4ed269b9f4d8296f2002f5d96fcc5d8a9ef7b1 (patch) | |
tree | 299b6a7fd9adb380c81f61db70326a88d53129a8 | |
parent | 11859b5c8f310f66c895de00887ac99fc2316d02 (diff) | |
download | bcm5719-llvm-6f4ed269b9f4d8296f2002f5d96fcc5d8a9ef7b1.tar.gz bcm5719-llvm-6f4ed269b9f4d8296f2002f5d96fcc5d8a9ef7b1.zip |
RegisterPressure: Improve assert message
llvm-svn: 251885
-rw-r--r-- | llvm/lib/CodeGen/RegisterPressure.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegisterPressure.cpp b/llvm/lib/CodeGen/RegisterPressure.cpp index 57dde2f2e2d..6ff16e551be 100644 --- a/llvm/lib/CodeGen/RegisterPressure.cpp +++ b/llvm/lib/CodeGen/RegisterPressure.cpp @@ -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. |