Re: [RFC: Patch 1/6] New target hook: rtx_branch_cost

2016-06-03 Thread Richard Biener
On Thu, Jun 2, 2016 at 6:53 PM, James Greenhalgh wrote: > > Hi, > > This patch introduces a new target hook, to be used like BRANCH_COST but > with a guaranteed unit of measurement. We want this to break away from > the current ambiguous uses of BRANCH_COST. > > BRANCH_COST is used in ifcvt.c in t

[RFC: Patch 1/6] New target hook: rtx_branch_cost

2016-06-02 Thread James Greenhalgh
Hi, This patch introduces a new target hook, to be used like BRANCH_COST but with a guaranteed unit of measurement. We want this to break away from the current ambiguous uses of BRANCH_COST. BRANCH_COST is used in ifcvt.c in two types of comparisons. One against instruction counts - where it is