]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/sese.c
re PR tree-optimization/67700 ([graphite] miscompile due to wrong codegen)
authorAditya Kumar <aditya.k7@samsung.com>
Mon, 28 Sep 2015 17:29:59 +0000 (17:29 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Mon, 28 Sep 2015 17:29:59 +0000 (17:29 +0000)
commitd5b5a232d4555659943c2776d1df753e5c0387f3
tree60998be0eae9d0a781a848fe9f960f7edde0aede
parent0a53bd6d4dc25af160c2986eb1efecd949118ad3
re PR tree-optimization/67700 ([graphite] miscompile due to wrong codegen)

fix PR67700

The patch makes the detection of scop parameters in parameter_index_in_region a
bit more conservative by discarding scalar variables defined in function of data
references defined in the scop.

2015-09-25  Aditya Kumar  <aditya.k7@samsung.com>
                Sebastian Pop  <s.pop@samsung.com>

                PR tree-optimization/67700
                * graphite-sese-to-poly.c (parameter_index_in_region): Call
                invariant_in_sese_p_rec.
                (extract_affine): Same.
                (rewrite_cross_bb_scalar_deps): Call update_ssa.
                * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
                * sese.h (invariant_in_sese_p_rec): Declare.

                * testsuite/gcc.dg/graphite/run-id-pr67700.c: New.

Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
From-SVN: r228214
gcc/ChangeLog
gcc/graphite-sese-to-poly.c
gcc/sese.c
gcc/sese.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/run-id-pr67700.c [new file with mode: 0644]