[Bug tree-optimization/21485] [4.2/4.3/4.4 Regression] missed load PRE, PRE makes i?86 suck
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Oct 4 16:17:00 GMT 2008
------- Comment #36 from rguenth at gcc dot gnu dot org 2008-10-04 16:16 -------
Testcase for that:
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre" } */
long
NumSift (long *array, int b, unsigned long k)
{
if (b)
if (array[k] < array[k + 1L])
++k;
return array[k];
}
/* There should be two loads left. */
/* { dg-final { scan-tree-dump-times "= \\\*" 2 "pre" } } */
/* { dg-final { cleanup-tree-dump "pre" } } */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21485
More information about the Gcc-bugs
mailing list