Fix "long" PHI handling

This commit is contained in:
Dmitry Stogov 2022-10-12 14:01:56 +03:00
parent 81c90972d6
commit ecb9719e8b

View File

@ -82,7 +82,7 @@ static void ir_gcm_schedule_late(ir_ctx *ctx, uint32_t *_blocks, ir_bitset visit
b = 0; b = 0;
n = ir_input_edges_count(ctx, insn); n = ir_input_edges_count(ctx, insn);
for (j = 4, p = insn->ops + 4; j <= n; j++, p++) { for (j = 3, p = insn->ops + 4; j < n; j++, p++) {
if (*p == ref) { if (*p == ref) {
b = _blocks[ctx->ir_base[insn->op1].ops[j]]; b = _blocks[ctx->ir_base[insn->op1].ops[j]];
break; break;