This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/30032] sqrt(CGAMMA*PRES[j]/DENS[j]) much slower than compiting compiler
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2006 21:23:34 -0000
- Subject: [Bug tree-optimization/30032] sqrt(CGAMMA*PRES[j]/DENS[j]) much slower than compiting compiler
- References: <bug-30032-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at physics dot uc dot edu 2006-11-30 21:23 -------
Subject: Re: 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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30032