This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/21591] not vectorizing a loop with access to structs
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 May 2005 19:03:26 -0000
- Subject: [Bug tree-optimization/21591] not vectorizing a loop with access to structs
- References: <20050515190151.21591.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-15 19:03 -------
Note I reduced this from the following Java code:
public class Test {
public static final void main(String[] args) {
int[] a = new int[256];
int[] b = new int[256];
int[] c = new int[256];
for (int i = 0; i < 256; i++) {
b[i] = i;
c[i] = i;
}
for (int i = 0; i < 256; i++) {
a[i] = b[i] + c[i];
}
}
}
But I needed a patch to the java front-end to mark a label decl as DECL_ARTIFICIAL to get even trying to
vectorize the loop (and -fno-bounds-check).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21591