diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-11-14 01:39:36 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-11-14 01:39:36 +0000 |
commit | d7bcf43dc22c68c873d5788d9f00c787ffb51b33 (patch) | |
tree | cac9b54ef25ad21150f5534831829b5e52a8c3b8 /llvm/lib/CodeGen/MachineVerifier.cpp | |
parent | 1071cfa4aeb0df203317179a6bda8c4c8a4cc39b (diff) | |
download | bcm5719-llvm-d7bcf43dc22c68c873d5788d9f00c787ffb51b33.tar.gz bcm5719-llvm-d7bcf43dc22c68c873d5788d9f00c787ffb51b33.zip |
Use getVNInfoBefore() when it makes sense.
llvm-svn: 144517
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index b36aab3d89c..b3c28b0eb3a 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -1193,8 +1193,8 @@ void MachineVerifier::verifyLiveIntervals() { // Check that VNI is live-out of all predecessors. for (MachineBasicBlock::const_pred_iterator PI = MFI->pred_begin(), PE = MFI->pred_end(); PI != PE; ++PI) { - SlotIndex PEnd = LiveInts->getMBBEndIdx(*PI).getPrevSlot(); - const VNInfo *PVNI = LI.getVNInfoAt(PEnd); + SlotIndex PEnd = LiveInts->getMBBEndIdx(*PI); + const VNInfo *PVNI = LI.getVNInfoBefore(PEnd); if (VNI->isPHIDef() && VNI->def == LiveInts->getMBBStartIdx(MFI)) continue; @@ -1202,7 +1202,7 @@ void MachineVerifier::verifyLiveIntervals() { if (!PVNI) { report("Register not marked live out of predecessor", *PI); *OS << "Valno #" << VNI->id << " live into BB#" << MFI->getNumber() - << '@' << LiveInts->getMBBStartIdx(MFI) << ", not live at " + << '@' << LiveInts->getMBBStartIdx(MFI) << ", not live before " << PEnd << " in " << LI << '\n'; continue; } |