aboutsummaryrefslogtreecommitdiffstats
path: root/src/broadcom/compiler/vir_dump.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-03-14 11:03:23 -0700
committerEric Anholt <[email protected]>2018-03-19 16:44:20 -0700
commit00910e3057588de3fe9b5dc2ae9263c2e4ba6cc4 (patch)
tree351a547518d1fc02b588d947408286ed87f244c3 /src/broadcom/compiler/vir_dump.c
parentfacc3c6f58de88ac3707a1b8435b7fc655d13124 (diff)
broadcom/vc5: Don't annotate dumps with stale live intervals.
As you're debugging register allocation, you may have changed the intervals and not recomputed yet. Just skip the dump in that case.
Diffstat (limited to 'src/broadcom/compiler/vir_dump.c')
-rw-r--r--src/broadcom/compiler/vir_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/broadcom/compiler/vir_dump.c b/src/broadcom/compiler/vir_dump.c
index ef860cbb5c1..90a3fb0ac65 100644
--- a/src/broadcom/compiler/vir_dump.c
+++ b/src/broadcom/compiler/vir_dump.c
@@ -321,7 +321,7 @@ vir_dump(struct v3d_compile *c)
vir_for_each_block(block, c) {
fprintf(stderr, "BLOCK %d:\n", block->index);
vir_for_each_inst(inst, block) {
- if (c->temp_start) {
+ if (c->live_intervals_valid) {
bool first = true;
for (int i = 0; i < c->num_temps; i++) {
@@ -342,7 +342,7 @@ vir_dump(struct v3d_compile *c)
fprintf(stderr, " ");
}
- if (c->temp_end) {
+ if (c->live_intervals_valid) {
bool first = true;
for (int i = 0; i < c->num_temps; i++) {