This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/21485] BYTEmark numsort: performance regression 3.4.3 -> 4.0.0 with -O3 optimization
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 May 2005 09:46:30 -0000
- Subject: [Bug rtl-optimization/21485] BYTEmark numsort: performance regression 3.4.3 -> 4.0.0 with -O3 optimization
- References: <20050510090336.21485.jbucata@tulsaconnect.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2005-05-10 09:46 -------
This is the function (reindented) where we spend almost all of our time:
void
NumSift (long *array, unsigned long i, unsigned long j)
{
unsigned long k;
long temp;
while ((i + i) <= j)
{
k = i + i;
if (k < j)
if (array[k] < array[k + 1L])
++k;
if (array[i] < array[k])
{
temp = array[k];
array[k] = array[i];
array[i] = temp;
i = k;
}
else
i = j + 1;
}
return;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21485