Protect loops that might be executed zero times.tobias/dealII_finalregtest/success/2009_11_23_12_23_08regtest/success/remotes/tobias/dealII_final
commit0630028c0ccd5f86bb1f2de338ed300d374b29e5
authorTobias Grosser <grosser@fim.uni-passau.de>
Mon, 23 Nov 2009 09:10:06 +0000 (23 10:10 +0100)
committerTobias Grosser <grosser@fim.uni-passau.de>
Mon, 23 Nov 2009 11:18:49 +0000 (23 12:18 +0100)
treeb693dde70e39373ccdb3644306226fe0445bf723
parent67244a777a2ec38010a6211a2c1a9978335dc8f3
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.
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