mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-17 03:24:34 +00:00
Fix debug printing of flagged SDNodes in SUnits so that they
print in the correct order. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59567 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -461,13 +461,9 @@ void ScheduleDAG::Run() {
|
|||||||
/// a group of nodes flagged together.
|
/// a group of nodes flagged together.
|
||||||
void SUnit::dump(const ScheduleDAG *G) const {
|
void SUnit::dump(const ScheduleDAG *G) const {
|
||||||
cerr << "SU(" << NodeNum << "): ";
|
cerr << "SU(" << NodeNum << "): ";
|
||||||
if (getNode())
|
if (getNode()) {
|
||||||
getNode()->dump(G->DAG);
|
|
||||||
else
|
|
||||||
cerr << "CROSS RC COPY ";
|
|
||||||
cerr << "\n";
|
|
||||||
SmallVector<SDNode *, 4> FlaggedNodes;
|
SmallVector<SDNode *, 4> FlaggedNodes;
|
||||||
for (SDNode *N = getNode()->getFlaggedNode(); N; N = N->getFlaggedNode())
|
for (SDNode *N = getNode(); N; N = N->getFlaggedNode())
|
||||||
FlaggedNodes.push_back(N);
|
FlaggedNodes.push_back(N);
|
||||||
while (!FlaggedNodes.empty()) {
|
while (!FlaggedNodes.empty()) {
|
||||||
cerr << " ";
|
cerr << " ";
|
||||||
@@ -475,6 +471,10 @@ void SUnit::dump(const ScheduleDAG *G) const {
|
|||||||
cerr << "\n";
|
cerr << "\n";
|
||||||
FlaggedNodes.pop_back();
|
FlaggedNodes.pop_back();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
cerr << "CROSS RC COPY ";
|
||||||
|
}
|
||||||
|
cerr << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void SUnit::dumpAll(const ScheduleDAG *G) const {
|
void SUnit::dumpAll(const ScheduleDAG *G) const {
|
||||||
|
Reference in New Issue
Block a user