diff options
| author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-08-26 16:46:14 +0000 |
|---|---|---|
| committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-08-26 16:46:14 +0000 |
| commit | eb34b71f0adeea97adf79d8c0af8428f93761d46 (patch) | |
| tree | afc2e874e3730f2d96f13b9bf8cc2f9de04107bc /llvm/lib | |
| parent | d3c7bb28be79af7367ca0fa9adb9fe458c8da0fa (diff) | |
| download | bcm5719-llvm-eb34b71f0adeea97adf79d8c0af8428f93761d46.tar.gz bcm5719-llvm-eb34b71f0adeea97adf79d8c0af8428f93761d46.zip | |
Add some more detailed debugging information in RegisterCoalescer
llvm-svn: 279835
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/RegisterCoalescer.cpp | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp index 9477fafe8e7..87a3bc04d95 100644 --- a/llvm/lib/CodeGen/RegisterCoalescer.cpp +++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp @@ -2372,7 +2372,7 @@ bool JoinVals::resolveConflicts(JoinVals &Other) { Indexes->getInstructionFromIndex(TaintExtent.front().first); assert(LastMI && "Range must end at a proper instruction"); unsigned TaintNum = 0; - for(;;) { + for (;;) { assert(MI != MBB->end() && "Bad LastMI"); if (usesLanes(*MI, Other.Reg, Other.SubIdx, TaintedLanes)) { DEBUG(dbgs() << "\t\ttainted lanes used by: " << *MI); @@ -2690,8 +2690,15 @@ void RegisterCoalescer::joinSubRegRanges(LiveRange &LRange, LiveRange &RRange, // Recompute the parts of the live range we had to remove because of // CR_Replace conflicts. - DEBUG(dbgs() << "\t\trestoring liveness to " << EndPoints.size() - << " points: " << LRange << '\n'); + DEBUG({ + dbgs() << "\t\trestoring liveness to " << EndPoints.size() << " points: "; + for (unsigned i = 0, n = EndPoints.size(); i != n; ++i) { + dbgs() << EndPoints[i]; + if (i != n-1) + dbgs() << ','; + } + dbgs() << ": " << LRange << '\n'; + }); LIS->extendToIndices(LRange, EndPoints); } @@ -2832,8 +2839,15 @@ bool RegisterCoalescer::joinVirtRegs(CoalescerPair &CP) { if (!EndPoints.empty()) { // Recompute the parts of the live range we had to remove because of // CR_Replace conflicts. - DEBUG(dbgs() << "\t\trestoring liveness to " << EndPoints.size() - << " points: " << LHS << '\n'); + DEBUG({ + dbgs() << "\t\trestoring liveness to " << EndPoints.size() << " points: " + for (unsigned i = 0, n = EndPoints.size(); i != n; ++i) { + dbgs() << EndPoints[i]; + if (i != n-1) + dbgs() << ','; + } + dbgs() << ": " << LHS << '\n'; + }); LIS->extendToIndices((LiveRange&)LHS, EndPoints); } |

