aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-02-26 13:04:21 -0500
committerRob Clark <[email protected]>2018-03-05 08:05:33 -0500
commit82c71b09d55b506e1a8d2719827ff7c60e5a2846 (patch)
tree0a3bd2787ccc23bfc8d8ad6d6d2c9366fcc14206
parentc9b1cc33dfde9123265f87a77d8ba231421f967c (diff)
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 <[email protected]>
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c1
1 files changed, 1 insertions, 0 deletions
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