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.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.c')
-rw-r--r-- | src/broadcom/compiler/vir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c index 0cbdc986d3f..05f557fbcd0 100644 --- a/src/broadcom/compiler/vir.c +++ b/src/broadcom/compiler/vir.c @@ -435,6 +435,7 @@ vir_emit(struct v3d_compile *c, struct qinst *inst) } c->cursor = vir_after_inst(inst); + c->live_intervals_valid = false; } /* Updates inst to write to a new temporary, emits it, and notes the def. */ @@ -813,6 +814,8 @@ vir_remove_instruction(struct v3d_compile *c, struct qinst *qinst) list_del(&qinst->link); free(qinst); + + c->live_intervals_valid = false; } struct qreg |