2017-10-13 Richard Biener <rguenther@suse.de>
* graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple::get_rename_from_scev): Remove unused parameters and dominance check. (translate_isl_ast_to_gimple::graphite_copy_stmts_from_block): Adjust. (translate_isl_ast_to_gimple::copy_bb_and_scalar_dependences): Likewise. (translate_isl_ast_to_gimple::graphite_regenerate_ast_isl): Do not update SSA form here or do intermediate IL verification. * graphite.c: Include tree-ssa.h and tree-into-ssa.h. (graphite_initialize): Remove check on the number of loops in the function and inline into graphite_transform_loops. (graphite_finalize): Inline into graphite_transform_loops. (graphite_transform_loops): Perform SSA update and IL verification here. * params.def (PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION): Remove. * gcc.dg/graphite/pr35356-3.c: XFAIL again. * gcc.dg/graphite/pr81373-2.c: Copy from gcc.dg/graphite/pr81373.c with alternate flags. From-SVN: r253721
This commit is contained in:
parent
6fe00fb72a
commit
99758d1a4b
40
gcc/testsuite/gcc.dg/graphite/pr81373-2.c
Normal file
40
gcc/testsuite/gcc.dg/graphite/pr81373-2.c
Normal file
@ -0,0 +1,40 @@
|
||||
/* { dg-options "-fno-tree-scev-cprop -floop-nest-optimize -fgraphite-identity -O -fdump-tree-graphite-all" } */
|
||||
|
||||
void bar (void);
|
||||
|
||||
int toto()
|
||||
{
|
||||
int i, j, k;
|
||||
int a[101][100];
|
||||
int b[100];
|
||||
|
||||
for (i = 1; i < 100; i++)
|
||||
{
|
||||
for (j = 1; j < 100; j++)
|
||||
for (k = 1; k < 100; k++)
|
||||
a[j][k] = a[j+1][i-1] + 2;
|
||||
|
||||
b[i] = b[i-1] + 2;
|
||||
|
||||
bar ();
|
||||
|
||||
for (j = 1; j < 100; j++)
|
||||
a[j][i] = a[j+1][i-1] + 2;
|
||||
|
||||
b[i] = b[i-1] + 2;
|
||||
|
||||
bar ();
|
||||
|
||||
for (j = 1; j < 100; j++)
|
||||
a[j][i] = a[j+1][i-1] + 2;
|
||||
|
||||
b[i] = a[i-1][i] + 2;
|
||||
|
||||
for (j = 1; j < 100; j++)
|
||||
a[j][i] = a[j+1][i-1] + 2;
|
||||
}
|
||||
|
||||
return a[3][5] + b[1];
|
||||
}
|
||||
|
||||
/* { dg-final { scan-tree-dump-times "number of SCoPs: 2" 1 "graphite"} } */
|
Loading…
x
Reference in New Issue
Block a user