mirror of
https://github.com/danog/ir.git
synced 2024-11-30 04:39:43 +01:00
Fix "long" PHI handling
This commit is contained in:
parent
81c90972d6
commit
ecb9719e8b
2
ir_gcm.c
2
ir_gcm.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user