pan/bi: Ensure the end NOP isn't eliminated

Otherwise the lowering doesn't work.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16410>
This commit is contained in:
Alyssa Rosenzweig
2022-05-02 15:28:38 -04:00
committed by Marge Bot
parent 6d41a28a40
commit 5cfae66cde
+6 -1
View File
@@ -4460,7 +4460,12 @@ static void
bi_lower_terminal_block(bi_context *ctx, bi_block *block)
{
bi_builder b = bi_init_builder(ctx, bi_after_block(block));
bi_nop(&b);
/* Ensure the instruction is not dead code eliminated. XXX: This is a
* bit of a hack.
*/
bi_instr *I = bi_nop(&b);
I->flow = 0xF;
}
static void