|
From: Eric P. <eri...@or...> - 2013-02-03 12:03:44
|
Le 01/02/2013 21:26, Florian Krohm a écrit :
> On 01/31/2013 11:50 AM, Florian Krohm wrote:
>> Hmm, maybe we should bite the bullet and make HReg a struct after all.
>> Let me see how generated code looks like....
>>
> I looked at two implementation choices:
>
> 1) make HReg a proper struct
>
> typedef struct {
> UInt regno : 24;
> HRegClass class : 4;
> Bool virtual : 1;
> } HReg;
and what does sameHReg: toBool(*(UInt*)&r1 == *(UInt*)&r2)) provides ?
(assuming sizeof(HReg)==sizeof(UInt))
A+
|