diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-26 20:21:43 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-26 20:21:43 +0000 |
commit | db594373bd2d48f515117698c374eeedb0b8ce04 (patch) | |
tree | 43f37ce612547a2f6986a5dff6a6c08991cd5db9 /llvm/lib/CodeGen/MachineVerifier.cpp | |
parent | 9c0672f40acad7d8f704c3366d7ffe1329d73664 (diff) | |
download | bcm5719-llvm-db594373bd2d48f515117698c374eeedb0b8ce04.tar.gz bcm5719-llvm-db594373bd2d48f515117698c374eeedb0b8ce04.zip |
Remmeber to print full live interval on verification error.
llvm-svn: 117391
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index 2c2b7fe94d0..b79d68b9d10 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -920,14 +920,15 @@ void MachineVerifier::verifyLiveIntervals() { if (DefVNI != VNI) { report("Live range at def has different valno", MF); *OS << "Valno #" << VNI->id << " is defined at " << VNI->def - << " where valno #" << DefVNI->id << " is live.\n"; + << " where valno #" << DefVNI->id << " is live in " << LI << '\n'; continue; } const MachineBasicBlock *MBB = LiveInts->getMBBFromIndex(VNI->def); if (!MBB) { report("Invalid definition index", MF); - *OS << "Valno #" << VNI->id << " is defined at " << VNI->def << '\n'; + *OS << "Valno #" << VNI->id << " is defined at " << VNI->def + << " in " << LI << '\n'; continue; } @@ -935,13 +936,15 @@ void MachineVerifier::verifyLiveIntervals() { if (VNI->def != LiveInts->getMBBStartIdx(MBB)) { report("PHIDef value is not defined at MBB start", MF); *OS << "Valno #" << VNI->id << " is defined at " << VNI->def - << ", not at the beginning of BB#" << MBB->getNumber() << '\n'; + << ", not at the beginning of BB#" << MBB->getNumber() + << " in " << LI << '\n'; } } else { // Non-PHI def. if (!VNI->def.isDef()) { report("Non-PHI def must be at a DEF slot", MF); - *OS << "Valno #" << VNI->id << " is defined at " << VNI->def << '\n'; + *OS << "Valno #" << VNI->id << " is defined at " << VNI->def + << " in " << LI << '\n'; } const MachineInstr *MI = LiveInts->getInstructionFromIndex(VNI->def); if (!MI) { |