fix PR68453: recursively add phi nodes to merge points
authorAditya Kumar <aditya.k7@samsung.com>
Thu, 26 Nov 2015 00:07:43 +0000 (00:07 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Thu, 26 Nov 2015 00:07:43 +0000 (00:07 +0000)
commitd6416b380014540a1f6aebe28565e8be98d14833
treeada978b1c08fb57489c812552d6c0d3b338ee9a3
parent91f6ec2fc627aafe3ba7f0e563e7f06146066ed6
fix PR68453: recursively add phi nodes to merge points

The patch adds close phi nodes to every outer loop exit, and to every loop
guard.  For loop guards it computes an initial value that determines where we
stop inserting phi nodes.  When the initial value is a constant, the initial
value is considered to be defined in the entry of the code gen region.

Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
From-SVN: r230918
gcc/ChangeLog
gcc/graphite-isl-ast-to-gimple.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/graphite/pr68453.f90 [new file with mode: 0644]