mirror of
https://github.com/danog/ir.git
synced 2025-01-22 05:31:32 +01:00
Duxed support for multi-word instructions
This commit is contained in:
parent
2bfe1626ad
commit
865daeb988
10
ir_ra.c
10
ir_ra.c
@ -2214,7 +2214,15 @@ static ir_block *ir_block_from_live_pos(ir_ctx *ctx, ir_live_pos pos)
|
||||
IR_ASSERT(0);
|
||||
return NULL;
|
||||
#else
|
||||
return &ctx->cfg_blocks[ctx->cfg_map[ref]];
|
||||
uint32_t b = ctx->cfg_map[ref];
|
||||
|
||||
while (!b) {
|
||||
ref--;
|
||||
IR_ASSERT(ref > 0);
|
||||
b = ctx->cfg_map[ref];
|
||||
}
|
||||
IR_ASSERT(b <= ctx->cfg_blocks_count);
|
||||
return &ctx->cfg_blocks[b];
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user