Re: [PATCH 2/5] Replace insn_rtx_cost with insn_cost and pattern_cost

2017-08-02 Thread Jeff Law
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

[PATCH 2/5] Replace insn_rtx_cost with insn_cost and pattern_cost

2017-07-31 Thread Segher Boessenkool
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_c