This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug tree-optimization/30032] sqrt(CGAMMA*PRES[j]/DENS[j]) much slower than compiting compiler
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: gcc-bugzilla at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 30 Nov 2006 16:25:16 -0500 (EST)
- Subject: Re: [Bug tree-optimization/30032] sqrt(CGAMMA*PRES[j]/DENS[j]) much slower than compiting compiler
>
>
>
> ------- Comment #4 from burnus at gcc dot gnu dot org 2006-11-30 21:14 -------
> > Also you are using VLAs so maybe ICC also converts those VLAs to normal
> > arrays.
You misunderstood me.
const int NODES = 2500;
float f[NODES];
causes a VLA to happen because in C, NODES is not a constant expression.
You can do instead:
#define NODES 2500
to get the non VLA.
-- Pinski