This is the mail archive of the gcc-patches@gcc.gnu.org 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: more predicates


jlquinn@optonline.net writes:

> ----- Original Message -----
> From: Zack Weinberg <zack@codesourcery.com>
> Date: Friday, July 16, 2004 12:50 pm
> Subject: Re: more predicates
>
>> "Giovanni Bajo" <giovannibajo@libero.it> writes:
>> [...]
>> > It would be nice to introduce a couple of macros
>> > GLOBAL_REG_P()/SET_GLOBAL_REG() to handle this (and maybe find a way
>> > to prevent people from using global_regs directly... renaming
>> > it?). The SET macro would abort if used with a wrong register
>> > number.
>
> Can gcc eliminate multiple tests for n < FIRST_PSEUDO_REGISTER?
> Otherwise, we shouldn't poison direct access for places that have
> already performed the safety test, right?

The idea is we don't do multiple tests, everyone uses GLOBAL_REG_P and
doesn't have to check n < FIRST_PSEUDO_REGISTER anymore.

I would hope common subexpression elimination would catch this,
though.

zw


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