Use better name

This commit is contained in:
Dmitry Stogov 2022-05-19 09:15:45 +03:00
parent b77f722cb9
commit 1af065058b
2 changed files with 3 additions and 3 deletions

4
ir.h
View File

@ -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)

View File

@ -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);
}