This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r160380 - in /trunk/gcc: ChangeLog cgraph.c ipa...
- From: hubicka at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 07 Jun 2010 15:33:39 -0000
- Subject: r160380 - in /trunk/gcc: ChangeLog cgraph.c ipa...
Author: hubicka
Date: Mon Jun 7 15:33:34 2010
New Revision: 160380
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160380
Log:
* cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
if caller is noreturn.
* ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
* ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
* ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
* ipa-pure-const.c (check_decl): Add IPA parameter.
(state_from_flags): New function.
(better_state, worse_state): New functions.
(check_call): When in IPA mode, do not care about callees.
(check_load, check_store): Update.
(check_ipa_load, check_ipa_store): New.
(check_stmt): When in IPA mode, use IPA checkers.
(analyze_function): Use state_from_flags.
(propagate): Check indirect edges and references.
Added:
trunk/gcc/testsuite/gcc.dg/ipa/pure-const-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraph.c
trunk/gcc/ipa-pure-const.c
trunk/gcc/ipa-ref.c
trunk/gcc/ipa-ref.h
trunk/gcc/ipa-reference.c
trunk/gcc/ipa.c
trunk/gcc/testsuite/ChangeLog