This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Ping patch for [Bug bootstrap/36908] bootstrap forever with BOOT_CFLAGS="-O2 -ftree-loop-distribution"
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: "Sebastian Pop" <sebpop at gmail dot com>
- Cc: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 3 Nov 2008 13:27:45 +0100
- Subject: Re: [patch] Ping patch for [Bug bootstrap/36908] bootstrap forever with BOOT_CFLAGS="-O2 -ftree-loop-distribution"
- References: <cb9d34b20811022132n33138f77id4d520ea09965c3a@mail.gmail.com>
On Mon, Nov 3, 2008 at 6:32 AM, Sebastian Pop <sebpop@gmail.com> wrote:
> Hi,
>
> Here is the fix for this bug on loop distribution.
>
> The problem here is that we end with two identical loops, as we copy
> almost all the statements in both loops. The attached patch solves
> the problem by counting the number of memory read and write operations
> per partition and compares it to the total number of memory operations
> in the Reduced Dependence Graph. Loop distribution is stopped when
> one of the partitions contains all the memory ops.
>
> Regstrapped on amd64-linux.
> Okay for trunk?
Ok.
Thanks,
Richard.
> Thanks,
> Sebastian
>