------- Comment #3 from grosser at gcc dot gnu dot org 2009-11-23 13:02 ------- Subject: Bug 42130
Author: grosser Date: Mon Nov 23 13:02:08 2009 New Revision: 154440 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154440 Log: Protect loops that might be executed zero times. 2009-11-23 Tobias Grosser <gros...@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. Added: branches/graphite/gcc/testsuite/g++.dg/graphite/pr42130.C Modified: branches/graphite/gcc/ChangeLog.graphite branches/graphite/gcc/graphite-clast-to-gimple.c branches/graphite/gcc/testsuite/gcc.dg/graphite/pr35356-2.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130