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: [PATCH] IPA pure const analysis shortcut


Samuel Tardieu <sam@rfc1149.net> writes:

> [resubmit in proper format, thanks to David Edelsohn for the note]
> 
> When local->pure_const_state in ipa-pure-const.c/check_decl has been set to
> IPA_NEITHER, it cannot be modified in the rest of the function, so it is
> possible to return immediately. This should bring a tiny performance
> improvement while not impairing the code readability.
> 
> 2007-10-24  Samuel Tardieu  <sam@rfc1149.net>
> 
> 	* ipa-pure-const.c: Return immediately when pure_const_state
>           has been set to IPA_NEITHER.

The ChangeLog entry should read

	* ipa-pure-const.c (check_decl): Return immediately when
	pure_const_state has been set to IPA_NEITHER.

(adds function name, changes indentation on second line).

This is OK if it has been bootstrapped and tested on a primary
platform.

Ian


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