This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, rs6000] Remove optimize_insn_for_speed_p check on divide -> recip splitter


On Wed, Sep 14, 2016 at 09:35:50AM +0200, Richard Biener wrote:
> On Tue, Sep 13, 2016 at 5:29 PM, Segher Boessenkool
> <segher@kernel.crashing.org> wrote:
> > On Tue, Sep 13, 2016 at 10:14:57AM -0500, Pat Haugen wrote:
> >> PRs 77536 and 68212 document cases where the estimated frequencies become unreliable to make appropriate decisions based on them. This patch removes the optimize_insn_for_speed_p check on the splitter so that the transformation will take place when -ffast-math is specified.
> >>
> >> Bootstrap/regtest on powerpc64le, ok for trunk?
> >
> > Okay for trunk.  Please mention the PRs in the changelog, i.e.:
> 
> Maybe you instead want !optimize_insn_for_size then? (if such thing
> exists?)  Otherwise you're
> triggering this for -Os.

That is the same as was there before, see predict.c:


bool
optimize_insn_for_speed_p (void)
{
  return !optimize_insn_for_size_p ();
}


The best solution of course is to have sane profiles always, but that
doesn't always happen currently (notably with the unrollers).  Pat left
a comment with the code so we can put that check back when the profile
is usable again.


Segher


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]