This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r178013 - in /branches/google/gcc-4_6/gcc: Chan...
- From: meheff at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 23 Aug 2011 20:34:02 -0000
- Subject: r178013 - in /branches/google/gcc-4_6/gcc: Chan...
Author: meheff
Date: Tue Aug 23 20:34:02 2011
New Revision: 178013
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178013
Log:
2011-08-23 Mark Heffernan <meheff@google.com>
* basic-block.h (maybe_hot_frequency_p): Add prototype.
* cgraph.c (dump_cgraph_node): Add field to dump.
(cgraph_clone_node) Handle new field.
* cgraph.h (cgraph_node): New field max_bb_count.
* cgraphbuild.c (rebuild_cgraph_edges): Compute max_bb_count.
* cgraphunit.c (cgraph_copy_node_for_versioning) Handle new field.
* common.opt (finline-hot-caller): New option.
* ipa-inline.c (cgraph_mark_inline_edge) Update max_bb_count.
(edge_hot_enough_p) New function.
(cgraph_decide_inlining_of_small_functions) Call edge_hot_enough_p.
* predict.c (maybe_hot_frequency_p): Remove static keyword and
guard with profile_info check.
* testsuite/gcc.dg/tree-prof/inliner-1.c: Add flag.
* testsuite/gcc.dg/tree-prof/lipo/inliner-1_0.c: Add flag.
Modified:
branches/google/gcc-4_6/gcc/ChangeLog.google-4_6
branches/google/gcc-4_6/gcc/basic-block.h
branches/google/gcc-4_6/gcc/cgraph.c
branches/google/gcc-4_6/gcc/cgraph.h
branches/google/gcc-4_6/gcc/cgraphbuild.c
branches/google/gcc-4_6/gcc/cgraphunit.c
branches/google/gcc-4_6/gcc/common.opt
branches/google/gcc-4_6/gcc/ipa-inline.c
branches/google/gcc-4_6/gcc/predict.c
branches/google/gcc-4_6/gcc/testsuite/gcc.dg/tree-prof/inliner-1.c
branches/google/gcc-4_6/gcc/testsuite/gcc.dg/tree-prof/lipo/inliner-1_0.c