Fix PR47019: parameters of a SCoP are SCEV analyzable.
2010-12-22 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/47019 * sese.h (scev_analyzable_p): Parameters of a SCoP are SCEV analyzable. * gfortran.dg/graphite/pr47019.f: New. From-SVN: r168182
This commit is contained in:
parent
f4da8dce7a
commit
9be8ba7e82
4 changed files with 24 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-12-22 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
PR tree-optimization/47019
|
||||
* sese.h (scev_analyzable_p): Parameters of a SCoP are SCEV analyzable.
|
||||
|
||||
2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
|
||||
|
||||
* c-aux-info.c (gen_formal_list_for_type): Use prototype_p.
|
||||
|
|
|
@ -413,7 +413,8 @@ scev_analyzable_p (tree def, sese region)
|
|||
scev = scalar_evolution_in_region (region, loop, def);
|
||||
|
||||
return !chrec_contains_undetermined (scev)
|
||||
&& TREE_CODE (scev) != SSA_NAME
|
||||
&& (TREE_CODE (scev) != SSA_NAME
|
||||
|| !defined_in_sese_p (scev, region))
|
||||
&& (tree_does_not_contain_chrecs (scev)
|
||||
|| evolution_function_is_affine_p (scev));
|
||||
}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2010-12-22 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
PR tree-optimization/47019
|
||||
* gfortran.dg/graphite/pr47019.f: New.
|
||||
|
||||
2010-12-22 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* g++.dg/init/volatile2.C: New.
|
||||
|
|
12
gcc/testsuite/gfortran.dg/graphite/pr47019.f
Normal file
12
gcc/testsuite/gfortran.dg/graphite/pr47019.f
Normal file
|
@ -0,0 +1,12 @@
|
|||
! { dg-options "-O -ftree-pre -fgraphite-identity -fno-tree-copy-prop" }
|
||||
|
||||
subroutine foo (ldmx,ldmy,v)
|
||||
integer :: ldmx, ldmy, v, l, m
|
||||
dimension v(5,ldmx,ldmy)
|
||||
do m = 5, 1, -1
|
||||
do l = m+1, 5
|
||||
v(m,3,2) = v(1,3,2)
|
||||
end do
|
||||
v(m,3,2) = m
|
||||
end do
|
||||
end
|
Loading…
Add table
Reference in a new issue