Mesa (master): i965/cfg: Handle no-idom case in cfg_t::dump_domtree().
Matt Turner
mattst88 at kemper.freedesktop.org
Fri Oct 30 00:51:14 UTC 2015
Module: Mesa
Branch: master
Commit: 9115fa1d132b3ed38180f05c303f9190cde23878
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9115fa1d132b3ed38180f05c303f9190cde23878
Author: Matt Turner <mattst88 at gmail.com>
Date: Wed Oct 28 21:11:46 2015 -0700
i965/cfg: Handle no-idom case in cfg_t::dump_domtree().
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_cfg.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_cfg.cpp b/src/mesa/drivers/dri/i965/brw_cfg.cpp
index 10bcd4b..5d46615 100644
--- a/src/mesa/drivers/dri/i965/brw_cfg.cpp
+++ b/src/mesa/drivers/dri/i965/brw_cfg.cpp
@@ -528,7 +528,9 @@ cfg_t::dump_domtree()
{
printf("digraph DominanceTree {\n");
foreach_block(block, this) {
- printf("\t%d -> %d\n", block->idom->num, block->num);
+ if (block->idom) {
+ printf("\t%d -> %d\n", block->idom->num, block->num);
+ }
}
printf("}\n");
}
More information about the mesa-commit
mailing list