re PR tree-optimization/49957 (Fails to SLP in 410.bwaves)
authorRichard Guenther <rguenther@suse.de>
Thu, 4 Aug 2011 12:22:42 +0000 (12:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 4 Aug 2011 12:22:42 +0000 (12:22 +0000)
commit428f80e65119aca0c7c03d5382d684dfdeaa7ac7
tree1e961cfbf89e2f48a7457ac4fcac919d87391ec7
parent9515740f004bf41a1a084285943cf73eb7316ef8
re PR tree-optimization/49957 (Fails to SLP in 410.bwaves)

2011-08-04  Richard Guenther  <rguenther@suse.de>

PR fortran/49957
* trans-array.c (add_to_offset): New function.
(gfc_conv_array_ref): Build the array index expression in optimally
associated order.
(gfc_walk_variable_expr): Adjust for the backward walk.

* gfortran.dg/vect/O3-pr49957.f: New testcase.

From-SVN: r177368
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/vect/O3-pr49957.f [new file with mode: 0644]