This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH PR70935, Regression 6,7]
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Yuri Rumyantsev <ysrumyan at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Igor Zamyatin <izamyatin at gmail dot com>, ÐÐÑÑ ÐÐÐÐÐÐÑ <enkovich dot gnu at gmail dot com>
- Date: Fri, 6 May 2016 12:45:35 +0200
- Subject: Re: [PATCH PR70935, Regression 6,7]
- Authentication-results: sourceware.org; auth=none
- References: <CAEoMCqSuei92fWp=f4tT2d-W27ukuAi+N6Vh6ZPCO13NgJGEpw at mail dot gmail dot com>
On Thu, May 5, 2016 at 5:19 PM, Yuri Rumyantsev <ysrumyan@gmail.com> wrote:
> Hi All,
>
> Here is a simple patch which cures the problem with nonlegal
> transformation of endless loop. THe fix is simply check that guard
> edge destination is not loop latch block.
>
> Bootstrapping and regression testing did not show any new failures.
> Is it OK for trunk?
Ok for trunk and branch.
THanks,
RIchard.
> ChangeLog:
> 2016-05-05 Yuri Rumyantsev <ysrumyan@gmail.com>
>
> PR debug/70935
> * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
> loop latch destination.
>
> gcc/testsuite/ChangeLog
> * gcc.dg/torture/pr70935.c: New test.