On 07/31/2017 05:25 PM, Segher Boessenkool wrote: > This renames insn_rtx_cost to pattern cost, and adds a new function > insn_cost that takes an rtx_insn * instead of an instruction pattern > as input. It uses the latter function anywhere an instruction is > readily available (instead of just an instruction pattern). > > The actual implementation of insn_cost just calls pattern_cost on > the pattern of the instruction; no functional change yet. > > --- > gcc/cfgrtl.c | 7 +++---- > gcc/combine.c | 17 ++++++++--------- > gcc/dse.c | 2 +- > gcc/ifcvt.c | 12 ++++++------ > gcc/rtl.h | 3 ++- > gcc/rtlanal.c | 13 +++++++++++-- > 6 files changed, 31 insertions(+), 23 deletions(-) Also looks good to me to go in once you've got a ChangeLog.
jeff