mirror of
https://github.com/danog/ir.git
synced 2025-01-22 05:31:32 +01:00
Better condition
This commit is contained in:
parent
802ec945ad
commit
0a5bb4a571
2
ir_ra.c
2
ir_ra.c
@ -773,7 +773,7 @@ static bool ir_try_coalesce(ir_ctx *ctx, ir_live_range **unused, ir_ref from, ir
|
||||
} else if ((f2 & IR_LIVE_INTERVAL_COALESCED) && !(f1 & IR_LIVE_INTERVAL_COALESCED)) {
|
||||
ir_vregs_join(ctx, unused, v2, v1);
|
||||
ctx->vregs[from] = v2;
|
||||
} else if (v1 < v2) {
|
||||
} else if (from < to) {
|
||||
ir_vregs_join(ctx, unused, v1, v2);
|
||||
if (f2 & IR_LIVE_INTERVAL_COALESCED) {
|
||||
for (i = 0; i < ctx->insns_count; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user