This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/29543] Poor code generated for arrays with variable bounds
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Oct 2006 12:42:06 -0000
- Subject: [Bug tree-optimization/29543] Poor code generated for arrays with variable bounds
- References: <bug-29543-318@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from ebotcazou at gcc dot gnu dot org 2006-10-22 12:42 -------
> Eric, if the type is Long_Float your solution will be much worse since the
> alignement on the stack of the matrices will be 4-bytes so you have 50% chance
> the code will be N times slower (when not 8-bytes aligned).
You're over-generalizing. Choose a saner architecture or use -malign-double.
> So in practice you have to go malloc in order to get proper alignment for
> Long_Float, and there is no reason the proposed code should perform badly.
No, but there is an obvious one why the Fortran version trounces the Ada
version. Let's not compare apples with oranges.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29543