Re: [PATCH 3/5] combine: Use insn_cost instead of pattern_cost everywhere

2017-08-02 Thread Segher Boessenkool
On Wed, Aug 02, 2017 at 10:40:32AM -0600, Jeff Law wrote: > On 07/31/2017 05:25 PM, Segher Boessenkool wrote: > > This changes combine to always use insn_cost, not pattern_cost. I don't > > intend to commit it like this: it calls recog more often than necessary, > > and it is very ugly (no, don't

Re: [PATCH 3/5] combine: Use insn_cost instead of pattern_cost everywhere

2017-08-02 Thread Jeff Law
On 07/31/2017 05:25 PM, Segher Boessenkool wrote: > This changes combine to always use insn_cost, not pattern_cost. I don't > intend to commit it like this: it calls recog more often than necessary, > and it is very ugly (no, don't look at it). But it's good enough to test > things with. So what

[PATCH 3/5] combine: Use insn_cost instead of pattern_cost everywhere

2017-07-31 Thread Segher Boessenkool
This changes combine to always use insn_cost, not pattern_cost. I don't intend to commit it like this: it calls recog more often than necessary, and it is very ugly (no, don't look at it). But it's good enough to test things with. --- gcc/combine.c | 31 +-- 1 file