Re: [PATCH 4/5] Add targetm.insn_cost hook

2017-08-02 Thread Jeff Law
On 07/31/2017 05:25 PM, Segher Boessenkool wrote: > This introduces a hook to implement insn_cost. If a target does not > implement the hook, the old function (i.e. pattern_cost) is used. > > --- > gcc/doc/tm.texi| 12 > gcc/doc/tm.texi.in | 2 ++ > gcc/rtlanal.c | 3 +++

[PATCH 4/5] Add targetm.insn_cost hook

2017-07-31 Thread Segher Boessenkool
This introduces a hook to implement insn_cost. If a target does not implement the hook, the old function (i.e. pattern_cost) is used. --- gcc/doc/tm.texi| 12 gcc/doc/tm.texi.in | 2 ++ gcc/rtlanal.c | 3 +++ gcc/target.def | 14 ++ 4 files changed, 31 ins