This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Improve ipa-pure-const handling of builtins
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 11 Jun 2010 14:36:48 -0700
- Subject: Re: Improve ipa-pure-const handling of builtins
- References: <20100611151604.GC7958@kam.mff.cuni.cz>
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.