This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/21591] not vectorizing a loop with access to structs


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]