diff options
| author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-07-12 17:55:28 +0000 |
|---|---|---|
| committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-07-12 17:55:28 +0000 |
| commit | 98c0f482d66624d72a4186a58f535536238bee8a (patch) | |
| tree | ded3868ef2e14cd0abf2ca9e4a7ebe04063928c7 /llvm/lib/CodeGen | |
| parent | 00dc68dff6ccf18295964af3daf10354ceb7cc76 (diff) | |
| download | bcm5719-llvm-98c0f482d66624d72a4186a58f535536238bee8a.tar.gz bcm5719-llvm-98c0f482d66624d72a4186a58f535536238bee8a.zip | |
Fix printing of debugging information in LiveIntervals::shrinkToUses
Print VNI->def before calling VNI->markUnused(), since markUnused makes
the def invalid.
llvm-svn: 275196
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 1a8360b226b..5f3281f6771 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -564,9 +564,9 @@ void LiveIntervals::shrinkToUses(LiveInterval::SubRange &SR, unsigned Reg) continue; if (VNI->isPHIDef()) { // This is a dead PHI. Remove it. + DEBUG(dbgs() << "Dead PHI at " << VNI->def << " may separate interval\n"); VNI->markUnused(); SR.removeSegment(*Segment); - DEBUG(dbgs() << "Dead PHI at " << VNI->def << " may separate interval\n"); } } |

