diff options
author | Eric Anholt <[email protected]> | 2018-03-14 11:03:23 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-03-19 16:44:20 -0700 |
commit | 00910e3057588de3fe9b5dc2ae9263c2e4ba6cc4 (patch) | |
tree | 351a547518d1fc02b588d947408286ed87f244c3 /src/broadcom/compiler/vir_dump.c | |
parent | facc3c6f58de88ac3707a1b8435b7fc655d13124 (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.c | 4 |
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++) { |