mirror of
https://github.com/danog/ir.git
synced 2024-11-30 04:39:43 +01:00
Use better name
This commit is contained in:
parent
b77f722cb9
commit
1af065058b
4
ir.h
4
ir.h
@ -546,8 +546,8 @@ struct _ir_live_range {
|
||||
ir_live_range *next;
|
||||
};
|
||||
|
||||
/* ir_live_interval.flags bits (two low bits are reserved for reg_num */
|
||||
#define IR_LIVE_INTERVAL_REG_NUM_MASK 0x3
|
||||
/* ir_live_interval.flags bits (two low bits are reserved for temporary register number) */
|
||||
#define IR_LIVE_INTERVAL_TEMP_NUM_MASK 0x3
|
||||
#define IR_LIVE_INTERVAL_FIXED (1<<2)
|
||||
#define IR_LIVE_INTERVAL_TEMP (1<<3)
|
||||
#define IR_LIVE_INTERVAL_VAR (1<<4)
|
||||
|
2
ir_ra.c
2
ir_ra.c
@ -2122,7 +2122,7 @@ static void assign_regs(ir_ctx *ctx)
|
||||
if (ival) {
|
||||
do {
|
||||
IR_ASSERT(ival->reg != IR_REG_NONE);
|
||||
ctx->regs[IR_LIVE_POS_TO_REF(ival->range.start)][ival->flags & IR_LIVE_INTERVAL_REG_NUM_MASK] = ival->reg;
|
||||
ctx->regs[IR_LIVE_POS_TO_REF(ival->range.start)][ival->flags & IR_LIVE_INTERVAL_TEMP_NUM_MASK] = ival->reg;
|
||||
ival = ival->next;
|
||||
} while (ival);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user