From f26d858051109d44d39ec8f00137045e9058f173 Mon Sep 17 00:00:00 2001 From: dmalcolm Date: Mon, 9 Dec 2013 20:38:21 +0000 Subject: Eliminate profile_status macro. gcc/ * basic-block.h (profile_status): Eliminate macro. * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of profile_status macro in favor of profile_status_for_fn, making use of cfun explicit. * cfghooks.c (account_profile_record): Likewise. * cfgloopanal.c (single_likely_exit): * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise. * graphite.c (graphite_finalize): * internal-fn.c (ubsan_expand_si_overflow_addsub_check, ubsan_expand_si_overflow_neg_check, ubsan_expand_si_overflow_mul_check): Likewise. * ipa-split.c (consider_split, execute_split_functions): * loop-unroll.c (decide_peel_simple): * optabs.c (emit_cmp_and_jump_insn_1): * predict.c (maybe_hot_edge_p, probably_never_executed, predictable_edge_p, probability_reliable_p, gimple_predict_edge, tree_estimate_probability_driver, estimate_bb_frequencies, compute_function_frequency, rebuild_frequencies): Likewise. * profile.c (compute_branch_probabilities): Likewise. * tree-cfg.c (gimple_account_profile_record): Likewise. * tree-inline.c (optimize_inline_calls): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205825 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/loop-unroll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/loop-unroll.c') diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c index 9910b4e1b43..d1c7b9cdfb3 100644 --- a/gcc/loop-unroll.c +++ b/gcc/loop-unroll.c @@ -1371,7 +1371,7 @@ decide_peel_simple (struct loop *loop, int flags) also branch from branch prediction POV (and probably better reason to not unroll/peel). */ if (num_loop_branches (loop) > 1 - && profile_status != PROFILE_READ) + && profile_status_for_fn (cfun) != PROFILE_READ) { if (dump_file) fprintf (dump_file, ";; Not peeling, contains branches\n"); -- cgit v1.2.1