I think this patch by Zdenek - vectorizing function calls - is related:
http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01655.html
(would need to be extended to cover this case).
Yes, extending Zdenek's patch to recognize built-in is a good idea.
However, in case of compiler inserted built-in
I've been doing some benchmarking of gfortran, and reducing the
testcase leads to what seems a missed optimization in the following
code:
$ cat a.c
void foo (float * restrict x, float * restrict y)
{
int i;
for (i = 0; i 1; i++)
x[i] = y[i] * y[i];
}
$ gcc a.c -O1 -ffast-math -msse
On 7/28/06, François-Xavier Coudert [EMAIL PROTECTED] wrote:
I've been doing some benchmarking of gfortran, and reducing the
testcase leads to what seems a missed optimization in the following
code:
$ cat a.c
void foo (float * restrict x, float * restrict y)
{
int i;
for (i = 0; i 1;
On Jul 28, 2006, at 3:04 AM, Richard Guenther wrote:
A bugreport is useful so we don't forget.
There is already a bug report. PR 21465.
-- Pinski