tree-loop-distribution.c (generate_loops_for_partition): Remove inner loop's exit...
authorBin Cheng <bin.cheng@arm.com>
Tue, 10 Oct 2017 09:02:13 +0000 (09:02 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Tue, 10 Oct 2017 09:02:13 +0000 (09:02 +0000)
commitefe040bf219da9f0aa2298c19909e392c784b3d3
tree5c6a56e26a252305e9ecc5ca13b46e9a1ac73b42
parent166b87998a85c8c7d6db923bc7c8370af3665381
tree-loop-distribution.c (generate_loops_for_partition): Remove inner loop's exit stmt by making it always exit the loop...

* tree-loop-distribution.c (generate_loops_for_partition): Remove
inner loop's exit stmt by making it always exit the loop, otherwise
we would generate an infinite empty loop.

gcc/testsuite
* gcc.dg/tree-ssa/ldist-27.c: New test.

From-SVN: r253580
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ldist-27.c [new file with mode: 0644]
gcc/tree-loop-distribution.c