re PR tree-optimization/32824 (Missed reduction vectorizer after store to global is LIM'd)
Fix PR32824. 2010-04-06 Changpeng Fang <changpeng.fang@amd.com> PR middle-end/32824 * passes.c (init_optimization_passes): Move pass_lim before pass_copy_prop and pass_dce_loop. * gcc.dg/vect/pr32824: New. From-SVN: r158018
This commit is contained in:
parent
f4d1d50a5a
commit
c86a394778
4 changed files with 27 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
|
||||
|
||||
PR middle-end/32824
|
||||
* passes.c (init_optimization_passes): Move pass_lim before
|
||||
pass_copy_prop and pass_dce_loop.
|
||||
|
||||
2010-04-06 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR target/43667
|
||||
|
|
|
@ -885,9 +885,9 @@ init_optimization_passes (void)
|
|||
{
|
||||
struct opt_pass **p = &pass_tree_loop.pass.sub;
|
||||
NEXT_PASS (pass_tree_loop_init);
|
||||
NEXT_PASS (pass_lim);
|
||||
NEXT_PASS (pass_copy_prop);
|
||||
NEXT_PASS (pass_dce_loop);
|
||||
NEXT_PASS (pass_lim);
|
||||
NEXT_PASS (pass_tree_unswitch);
|
||||
NEXT_PASS (pass_scev_cprop);
|
||||
NEXT_PASS (pass_record_bounds);
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
|
||||
|
||||
PR middle-end/32824
|
||||
* gcc.dg/vect/pr32824: New.
|
||||
|
||||
2010-04-06 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
PR fortran/18918
|
||||
|
|
15
gcc/testsuite/gcc.dg/vect/pr32824.c
Normal file
15
gcc/testsuite/gcc.dg/vect/pr32824.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target vect_int } */
|
||||
|
||||
int a[16*100];
|
||||
int e;
|
||||
void foo(void)
|
||||
{
|
||||
int i;
|
||||
for(i = 0;i<16*100;i++)
|
||||
e += a[i];
|
||||
}
|
||||
|
||||
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
|
||||
/* { dg-final { cleanup-tree-dump "vect" } } */
|
||||
|
Loading…
Add table
Reference in a new issue