From: Rob Clark Date: Mon, 26 Feb 2018 18:04:21 +0000 (-0500) Subject: freedreno/ir3: ignore return jump X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82c71b09d55b506e1a8d2719827ff7c60e5a2846;p=mesa.git 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 --- 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