aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-08-22 19:51:23 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-22 19:51:23 +0000
commit9f215bf54c4e0b9d8fc0368b594edec3a5303386 (patch)
treeb5b6507d23d368265188e14d4c629eea423dc4a3 /gcc/predict.h
parent59ea036456a663cb19a4f5a03c0643bd66f55b30 (diff)
downloadgcc-9f215bf54c4e0b9d8fc0368b594edec3a5303386.zip
gcc-9f215bf54c4e0b9d8fc0368b594edec3a5303386.tar.gz
gcc-9f215bf54c4e0b9d8fc0368b594edec3a5303386.tar.bz2
predict.*: Use rtx_insn (also touches function.c and config/cris/cris.c)
gcc/ * predict.h (predict_insn_def): Strengthen param "insn" from rtx to rtx_insn *. * function.c (stack_protect_epilogue): Add checked cast to rtx_insn for now when invoking predict_insn_def. * predict.c (predict_insn): Strengthen param "insn" from rtx to rtx_insn *. (predict_insn_def): Likewise. (rtl_predict_edge): Likewise for local "last_insn". (can_predict_insn_p): Strengthen param "insn" from const_rtx to const rtx_insn *. (combine_predictions_for_insn): Strengthen param "insn" from rtx to rtx_insn *. (bb_estimate_probability_locally): Likewise for local "last_insn". (expensive_function_p): Likewise for local "insn". * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for local "jmp", since this is used when invoking predict_insn_def. From-SVN: r214361
Diffstat (limited to 'gcc/predict.h')
-rw-r--r--gcc/predict.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.h b/gcc/predict.h
index 1555f80..c75b6b6 100644
--- a/gcc/predict.h
+++ b/gcc/predict.h
@@ -45,7 +45,7 @@ enum prediction
TAKEN
};
-extern void predict_insn_def (rtx, enum br_predictor, enum prediction);
+extern void predict_insn_def (rtx_insn *, enum br_predictor, enum prediction);
extern int counts_to_freqs (void);
extern void handle_missing_profiles (void);
extern void estimate_bb_frequencies (bool);