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: Improve ipa-pure-const handling of builtins


On Fri, Jun 11, 2010 at 8:16 AM, Jan Hubicka <hubicka@ucw.cz> wrote:
> Hi,
> while looking on statistics, I noticed that quite large portion of functions are not
> pure/const because they call alloca or __builtin_unreachable. ? This patch adds code
> to ipa-pure-const.c to recognize builtins that are special in a way that they can
> not be const/pure, but function calling them can.
>
> Bootstrapped/regtested x86_64-linux, commited.
> Honza
>
> ? ? ? ?* ipa-pure-const.c (special_builtlin_state): New function.
> ? ? ? ?(check_call): Use it instead of special casign BUILT_IN_RETURN.
> ? ? ? ?(propagate_pure_const): Use it.
>

This caused:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44505

-- 
H.J.


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