This is the mail archive of the
mailing list for the GCC project.
Re: [RFC] Fix context-sensitiveness of peephole2 pass
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: Eric Botcazou <ebotcazou at adacore dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 25 Oct 2013 08:15:04 +0200
- Subject: Re: [RFC] Fix context-sensitiveness of peephole2 pass
- Authentication-results: sourceware.org; auth=none
- References: <2856601 dot ZucKZt0EVz at polaris> <5269FE42 dot 9030008 at redhat dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Oct 24, 2013 at 11:14:42PM -0600, Jeff Law wrote:
> On 10/24/13 15:10, Eric Botcazou wrote:
> >As discovered by Richard B. under PR rtl-optimization/58831, the peephole2
> >pass has been context-sensitive for a long time when scratch registers are
> >needed, in the sense that the behaviour of the pass for a given function is
> >dependent on what happened for the previously optimized function.
> >Obvious patch attached, tested on x86_64-suse-linux. Do we want to apply it
> >on mainline only or on all the active branches?
> >2013-10-24 Eric Botcazou <email@example.com>
> > * recog.c (search_ofs): New static variable moved from...
> > (peep2_find_free_register): ...here.
> > (peephole2_optimize): Initialize it.
> OK for trunk. Release branch owners have the final call for their branches.
This is ok for the release branches too.