freedreno/ir3: fix crash when no non-input instructions
This scenario can come up with block-sched and nop-sched moved to after RA. So lets fix it first to keep things bisectable. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
This commit is contained in:
parent
c1194e10b2
commit
54c795f829
|
@ -775,7 +775,7 @@ ra_block_compute_live_ranges(struct ir3_ra_ctx *ctx, struct ir3_block *block)
|
|||
|
||||
def(name, id->defn);
|
||||
|
||||
if (instr->opc == OPC_META_INPUT)
|
||||
if ((instr->opc == OPC_META_INPUT) && first_non_input)
|
||||
use(name, first_non_input);
|
||||
|
||||
if (is_high(id->defn)) {
|
||||
|
|
Loading…
Reference in New Issue