mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
nv50/ir: remove DUMMY edge type
it was never used Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
023282a4f6
commit
730f06a44d
4 changed files with 1 additions and 13 deletions
|
|
@ -536,9 +536,6 @@ Function::printCFGraph(const char *filePath)
|
|||
case Graph::Edge::BACK:
|
||||
fprintf(out, "\t%i -> %i;\n", idA, idB);
|
||||
break;
|
||||
case Graph::Edge::DUMMY:
|
||||
fprintf(out, "\t%i -> %i [style=dotted];\n", idA, idB);
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -77,7 +77,6 @@ const char *Graph::Edge::typeStr() const
|
|||
case FORWARD: return "forward";
|
||||
case BACK: return "back";
|
||||
case CROSS: return "cross";
|
||||
case DUMMY: return "dummy";
|
||||
case UNKNOWN:
|
||||
default:
|
||||
return "unk";
|
||||
|
|
@ -184,7 +183,7 @@ Graph::Node::reachableBy(const Node *node, const Node *term) const
|
|||
continue;
|
||||
|
||||
for (EdgeIterator ei = pos->outgoing(); !ei.end(); ei.next()) {
|
||||
if (ei.getType() == Edge::BACK || ei.getType() == Edge::DUMMY)
|
||||
if (ei.getType() == Edge::BACK)
|
||||
continue;
|
||||
if (ei.getNode()->visit(seq))
|
||||
stack.push(ei.getNode());
|
||||
|
|
@ -301,7 +300,6 @@ private:
|
|||
switch (ei.getType()) {
|
||||
case Graph::Edge::TREE:
|
||||
case Graph::Edge::FORWARD:
|
||||
case Graph::Edge::DUMMY:
|
||||
if (++(ei.getNode()->tag) == ei.getNode()->incidentCountFwd())
|
||||
bb.push(ei.getNode());
|
||||
break;
|
||||
|
|
@ -371,8 +369,6 @@ void Graph::classifyDFS(Node *curr, int& seq)
|
|||
|
||||
for (edge = curr->out; edge; edge = edge->next[0]) {
|
||||
node = edge->target;
|
||||
if (edge->type == Edge::DUMMY)
|
||||
continue;
|
||||
|
||||
if (node->getSequence() == 0) {
|
||||
edge->type = Edge::TREE;
|
||||
|
|
@ -387,8 +383,6 @@ void Graph::classifyDFS(Node *curr, int& seq)
|
|||
|
||||
for (edge = curr->in; edge; edge = edge->next[1]) {
|
||||
node = edge->origin;
|
||||
if (edge->type == Edge::DUMMY)
|
||||
continue;
|
||||
|
||||
if (node->getSequence() == 0) {
|
||||
edge->type = Edge::TREE;
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ public:
|
|||
FORWARD,
|
||||
BACK,
|
||||
CROSS, // e.g. loop break
|
||||
DUMMY
|
||||
};
|
||||
|
||||
Edge(Node *dst, Node *src, Type kind);
|
||||
|
|
|
|||
|
|
@ -624,8 +624,6 @@ RegAlloc::BuildIntervalsPass::collectLiveValues(BasicBlock *bb)
|
|||
// trickery to save a loop of OR'ing liveSets
|
||||
// aliasing works fine with BitSet::setOr
|
||||
for (Graph::EdgeIterator ei = bb->cfg.outgoing(); !ei.end(); ei.next()) {
|
||||
if (ei.getType() == Graph::Edge::DUMMY)
|
||||
continue;
|
||||
if (bbA) {
|
||||
bb->liveSet.setOr(&bbA->liveSet, &bbB->liveSet);
|
||||
bbA = bb;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue