This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto][patch] remove local variables from types (after gimplification)
On Thu, Jun 26, 2008 at 4:25 PM, Rafael Espindola <espindola@google.com> wrote:
>>> It looks like we lose an optimization if we can't recognize a constant size.
>>
>> Sure we will. But we are not talking about NULL-ing non-constant sizes,
>> no? Of course TYPE_SIZE{_UNIT} accessors might need a non-NULL
>> check in some places.
>
> We are removing only non integer ones. The original idea was to use a
> pointer to element type instead of an array, but you convinced us not
> to :-)
Yep ;) In which case we won't loose optimization opportunities, because
obviously in the cited example the size was _not_ constant (otherwise
TYPE_SIZE wouldn't be zero).
Richard.