This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR rtl-optimization/71634
- From: Bernd Schmidt <bschmidt at redhat dot com>
- To: Martin Liška <mliska at suse dot cz>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 8 Jul 2016 13:59:33 +0200
- Subject: Re: [PATCH] Fix PR rtl-optimization/71634
- Authentication-results: sourceware.org; auth=none
- References: <9a63c955-7bd8-f272-dda3-eb7963414502@suse.cz> <4761edb5-e712-bff2-019d-076732abecb8@redhat.com>
On 07/08/2016 01:52 PM, Bernd Schmidt wrote:
int maxidx = MIN (IRA_MAX_LOOPS_NUM, n);
for (i = 0; i < maxidx; i++)
{
Gah, that's not right, that'll swap the numbers of kept/removed loops.
I think the right answer is simply
for (i = 0; i < n - IRA_MAX_LOOPS_NUM; i++)
Bernd