forked from OSchip/llvm-project
Add some more detailed debugging information in RegisterCoalescer
llvm-svn: 279835
This commit is contained in:
parent
d3c7bb28be
commit
eb34b71f0a
|
|
@ -2690,8 +2690,15 @@ void RegisterCoalescer::joinSubRegRanges(LiveRange &LRange, LiveRange &RRange,
|
||||||
|
|
||||||
// Recompute the parts of the live range we had to remove because of
|
// Recompute the parts of the live range we had to remove because of
|
||||||
// CR_Replace conflicts.
|
// CR_Replace conflicts.
|
||||||
DEBUG(dbgs() << "\t\trestoring liveness to " << EndPoints.size()
|
DEBUG({
|
||||||
<< " points: " << LRange << '\n');
|
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);
|
LIS->extendToIndices(LRange, EndPoints);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2832,8 +2839,15 @@ bool RegisterCoalescer::joinVirtRegs(CoalescerPair &CP) {
|
||||||
if (!EndPoints.empty()) {
|
if (!EndPoints.empty()) {
|
||||||
// Recompute the parts of the live range we had to remove because of
|
// Recompute the parts of the live range we had to remove because of
|
||||||
// CR_Replace conflicts.
|
// CR_Replace conflicts.
|
||||||
DEBUG(dbgs() << "\t\trestoring liveness to " << EndPoints.size()
|
DEBUG({
|
||||||
<< " points: " << LHS << '\n');
|
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);
|
LIS->extendToIndices((LiveRange&)LHS, EndPoints);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue