projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nv50/ir: Rename "mkLoad" to "mkLoadv" for consistency.
[mesa.git]
/
src
/
gallium
/
drivers
/
nv50
/
codegen
/
nv50_ir_graph.cpp
diff --git
a/src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp
b/src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp
index f1bff9736362b71818dfdb92bb9490e040788f42..33e35eea950bd7e620080de361d73cdee98f5a79 100644
(file)
--- a/
src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp
+++ b/
src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp
@@
-23,6
+23,7
@@
#include "nv50_ir_graph.h"
#include <limits>
#include <list>
#include "nv50_ir_graph.h"
#include <limits>
#include <list>
+#include <stack>
#include "nv50_ir.h"
namespace nv50_ir {
#include "nv50_ir.h"
namespace nv50_ir {
@@
-165,16
+166,17
@@
Graph::Edge::Edge(Node *org, Node *tgt, Type kind)
}
bool
}
bool
-Graph::Node::reachableBy(
Node *node, Node *term)
+Graph::Node::reachableBy(
const Node *node, const Node *term) const
{
{
-
Stack
stack;
-
Node *pos
;
+
std::stack<const Node *>
stack;
+
const Node *pos = NULL
;
const int seq = graph->nextSequence();
stack.push(node);
const int seq = graph->nextSequence();
stack.push(node);
- while (stack.getSize()) {
- pos = reinterpret_cast<Node *>(stack.pop().u.p);
+ while (!stack.empty()) {
+ pos = stack.top();
+ stack.pop();
if (pos == this)
return true;
if (pos == this)
return true;