From 82c71b09d55b506e1a8d2719827ff7c60e5a2846 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 26 Feb 2018 13:04:21 -0500 Subject: [PATCH] freedreno/ir3: ignore return jump I think this should also always only occur at the end of a BB (by definition), and the BB successor should be the end block. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c index 38d9ee8e1f0..1c8d836a87f 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c @@ -2599,6 +2599,7 @@ emit_jump(struct ir3_context *ctx, nir_jump_instr *jump) switch (jump->type) { case nir_jump_break: case nir_jump_continue: + case nir_jump_return: /* I *think* we can simply just ignore this, and use the * successor block link to figure out where we need to * jump to for break/continue -- 2.30.2