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:
Rob Clark 2019-12-19 09:48:39 -08:00 committed by Marge Bot
parent c1194e10b2
commit 54c795f829
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {