]> gcc.gnu.org Git - gcc.git/commit
Protect loops that might be executed zero times.
authorTobias Grosser <grosser@fim.uni-passau.de>
Mon, 30 Nov 2009 22:07:59 +0000 (22:07 +0000)
committerTobias Grosser <grosser@gcc.gnu.org>
Mon, 30 Nov 2009 22:07:59 +0000 (22:07 +0000)
commit0dd91484ecd508f2a9f06a65dbba1a5bc08902d0
tree706b09e8fc9c4a9701fee8c98393c08fe513b518
parentfd2d813d0c2f9119ae3b6298e38e827bfa4fab89
Protect loops that might be executed zero times.

2009-11-23  Tobias Grosser  <grosser@fim.uni-passau.de>

PR middle-end/42130
* graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
translate_clast_for_loop): New.
(translate_clast_for): Add a condition around the loop, to do not
execute loops with zero iterations.
* testsuite/g++.dg/graphite/pr42130.C: New.
* testsuite/gcc.dg/graphite/pr35356-2.c: Adapt.

From-SVN: r154849
gcc/ChangeLog.graphite
gcc/graphite-clast-to-gimple.c
gcc/testsuite/g++.dg/graphite/pr42130.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/graphite/pr35356-2.c
This page took 0.06726 seconds and 5 git commands to generate.