mirror of
https://github.com/danog/ir.git
synced 2025-01-22 05:31:32 +01:00
Skip END and LOOP_END
This commit is contained in:
parent
c0e1216361
commit
3471060709
7
ir_ra.c
7
ir_ra.c
@ -457,7 +457,12 @@ int ir_compute_live_ranges(ir_ctx *ctx)
|
|||||||
} IR_BITSET_FOREACH_END();
|
} IR_BITSET_FOREACH_END();
|
||||||
|
|
||||||
/* for each operation op of b in reverse order */
|
/* for each operation op of b in reverse order */
|
||||||
for (ref = bb->end; ref > bb->start; ref -= ctx->prev_insn_len[ref]) {
|
ref = bb->end;
|
||||||
|
insn = &ctx->ir_base[ref];
|
||||||
|
if (insn->op == IR_END || insn->op == IR_LOOP_END) {
|
||||||
|
ref -= ctx->prev_insn_len[ref];
|
||||||
|
}
|
||||||
|
for (; ref > bb->start; ref -= ctx->prev_insn_len[ref]) {
|
||||||
uint8_t def_flags = 0;
|
uint8_t def_flags = 0;
|
||||||
uint32_t flags;
|
uint32_t flags;
|
||||||
ir_ref *p;
|
ir_ref *p;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user