freedreno/ir3: ignore return jump
authorRob Clark <robdclark@gmail.com>
Mon, 26 Feb 2018 18:04:21 +0000 (13:04 -0500)
committerRob Clark <robdclark@gmail.com>
Mon, 5 Mar 2018 13:05:33 +0000 (08:05 -0500)
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 <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c

index 38d9ee8e1f049f71d27d4081c2bb5d9b39cd9d3d..1c8d836a87f720e7fae2efd9a242a61f2551d517 100644 (file)
@@ -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