Rearrange the fields in Ins so the bit-fields get packed together

This commit is contained in:
Michael Forney 2019-02-14 13:23:28 -08:00 committed by Quentin Carbonneaux
parent b777cd6c4b
commit f622efa05a
6 changed files with 12 additions and 15 deletions

2
load.c
View file

@ -77,7 +77,7 @@ iins(int cls, int op, Ref a0, Ref a1, Loc *l)
ist->num = inum++;
ist->bid = l->blk->id;
ist->off = l->off;
ist->new.ins = (Ins){op, R, {a0, a1}, cls};
ist->new.ins = (Ins){op, cls, R, {a0, a1}};
return ist->new.ins.to = newtmp("ld", cls, curf);
}