From d09e78e89037b5096e55b04effa714fc40e19a8c Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 9 Oct 2017 21:44:13 +0200 Subject: Replace insn_rtx_cost with insn_cost and pattern_cost This replaces insn_rtx_cost with insn_cost if an insn is readily available, and with pattern_cost otherwise. * cfgrtl.c (rtl_account_profile_record): Replace insn_rtx_cost with insn_cost. * combine.c (uid_insn_cost): Adjust comment. (combine_validate_cost): Adjust comment. Use pattern_cost instead of insn_rtx_cost (combine_instructions): Use insn_cost instead of insn_rtx_cost. * dse.c (find_shift_sequence): Ditto. * ifcvt.c (cheap_bb_rtx_cost_p): Ditto. (bb_valid_for_noce_process_p): Use pattern_cost. * rtl.h (insn_rtx_cost): Delete. (pattern_cost): New prototype. (insn_cost): New prototype. * rtlanal.c (insn_rtx_cost): Rename to... (pattern_cost): ... this. (insn_cost): New. From-SVN: r253560 --- gcc/dse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/dse.c') diff --git a/gcc/dse.c b/gcc/dse.c index cff3ac4..563ca9f 100644 --- a/gcc/dse.c +++ b/gcc/dse.c @@ -1653,7 +1653,7 @@ find_shift_sequence (int access_size, cost = 0; for (insn = shift_seq; insn != NULL_RTX; insn = NEXT_INSN (insn)) if (INSN_P (insn)) - cost += insn_rtx_cost (PATTERN (insn), speed); + cost += insn_cost (insn, speed); /* The computation up to here is essentially independent of the arguments and could be precomputed. It may -- cgit v1.1