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] Fix PR rtl-optimization/71634


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


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