[Mesa-dev] [PATCH 2/2] nv50/ir: make sure entire graph is reachable
Ilia Mirkin
imirkin at alum.mit.edu
Tue Dec 1 21:38:22 PST 2015
The algorithm expects the entire CFG to be reachable, so make sure that
we hit every node. Otherwise we will end up with uninitialized data,
memory corruption, etc.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/codegen/nv50_ir_ssa.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_ssa.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_ssa.cpp
index 2e43234..9ea1065 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_ssa.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_ssa.cpp
@@ -87,6 +87,7 @@ DominatorTree::DominatorTree(Graph *cfgraph) : cfg(cfgraph),
LABEL(i) = i;
SEMI(i) = ANCESTOR(i) = -1;
}
+ assert(i == count);
build();
--
2.4.10
More information about the mesa-dev
mailing list