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:
committed by
Marge Bot
parent
6d41a28a40
commit
5cfae66cde
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user