pan/bi: Assume SSA in minor passes

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17794>
This commit is contained in:
Alyssa Rosenzweig
2022-07-25 15:05:41 -04:00
committed by Marge Bot
parent 334ab03b9f
commit f02f657a31
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ bi_lower_swizzle(bi_context *ctx)
BITSET_WORD *replicates_16 = calloc(sizeof(bi_index), ctx->ssa_alloc);
bi_foreach_instr_global(ctx, ins) {
if (ins->nr_dests && bi_is_ssa(ins->dest[0]) && bi_instr_replicates(ins, replicates_16))
if (ins->nr_dests && bi_instr_replicates(ins, replicates_16))
BITSET_SET(replicates_16, ins->dest[0].value);
if (ins->op == BI_OPCODE_SWZ_V2I16 && bi_is_ssa(ins->src[0]) &&
@@ -96,7 +96,7 @@ bi_opt_message_preload(bi_context *ctx)
bi_builder b = bi_init_builder(ctx, bi_before_nonempty_block(block));
bi_foreach_instr_in_block_safe(block, I) {
if (I->nr_dests != 1 || !bi_is_ssa(I->dest[0])) continue;
if (I->nr_dests != 1) continue;
struct bifrost_message_preload msg;