r183817 - in /branches/google/gcc-4_6/gcc: Chan...
eraman@gcc.gnu.org
eraman@gcc.gnu.org
Wed Feb 1 23:26:00 GMT 2012
Author: eraman
Date: Wed Feb 1 23:26:38 2012
New Revision: 183817
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183817
Log:
2012-02-01 Easwaran Raman <eraman@google.com>
* expr.c (do_tablejump): Add default_probability as the
sixth parameter and use it to generate REG_BR_PROB note.
(try_tablejump): Add default_probability as a parameter.
* cfgbuild.c (non_zero_profile_counts): New function.
(compute_outgoing_frequencies): If edges have profile counts
set, don't replace them with guessed values.
* expr.h (try_tablejump): Add additional parameter to the
declaration.
* stmt.c (tree-flow.h): Include.
(case_node): Add new fields count and subtree_count.
(add_case_node): Pass count as a paramater and initialize
count field of case_node.
(case_probability): New macro.
(expand_case): Propagate profile information from the tree
level to RTL during switch case expansion.
(balance_case_nodes): Compute subtree_count for case nodes.
(emit_case_nodes): Set branch probabilities for generated
branches.
testsuite/ChengeLog.google-4_6:
2012-02-01 Easwaran Raman <eraman@google.com>
* tree-prof/switch-case-1.c: New test.
* tree-prof/switch-case-2.c: New test.
Added:
branches/google/gcc-4_6/gcc/testsuite/gcc.dg/tree-prof/switch-case-1.c
branches/google/gcc-4_6/gcc/testsuite/gcc.dg/tree-prof/switch-case-2.c
Modified:
branches/google/gcc-4_6/gcc/ChangeLog.google-4_6
branches/google/gcc-4_6/gcc/cfgbuild.c
branches/google/gcc-4_6/gcc/expr.c
branches/google/gcc-4_6/gcc/expr.h
branches/google/gcc-4_6/gcc/stmt.c
branches/google/gcc-4_6/gcc/testsuite/ChangeLog.google-4_6
More information about the Gcc-cvs
mailing list