This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC/RFA: patch for PR 22156: improve SRA for bit-fields

On May  4, 2007, Eric Botcazou <> wrote:

>> I'm sorry, I'd mistaken your report as a miscompilation, that I hoped
>> would be fixed with my revised patch.  Now I see it's just an
>> optimization issue.

> It triggers other problems later, most notably ICEs.

Would you please let me know whether this is still the case for the
patch I've just posted in the thread "Reload bug & SRA oddness"?

> 2 *words* are put together and accessed as bitfields, i.e. the whole
> structure, this is a no-no in my opinion.

I'm not sure why this is bad, if the bitfield access patterns are
whole-word accesses, which presumably access a single register.  I see
that that register allocation may be poorer because of the pairing.
This is actually the same issue that Romal Zipel pointed out.

I wonder if clipping align at BITS_PER_WORD is the right answer...  It
would limit coalescing of wider bit-fields, but this is probably not
such a big deal.

Alexandre Oliva
FSF Latin America Board Member
Red Hat Compiler Engineer   aoliva@{,}
Free Software Evangelist  oliva@{,}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]