pan/bi: Fix elimination of repeated branches
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 18 Feb 2021 18:54:30 +0000 (13:54 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Feb 2021 17:12:55 +0000 (17:12 +0000)
How many times can I break such a small pass?

Fixes: a805d999c0e ("pan/bi: Fix jumps to terminal block again")
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9137>

src/panfrost/bifrost/bifrost_compile.c

index ee938cd..e87213b 100644 (file)
@@ -2887,7 +2887,7 @@ bi_lower_branch(bi_block *block)
                 if (branched) {
                         assert(was_jump && (ins->op == BI_OPCODE_JUMP));
                         bi_remove_instruction(ins);
-                        break;
+                        continue;
                 }
 
                 branched = true;