This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/42130] [graphite-branch] dealII fails
- From: "grosser at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Nov 2009 13:02:26 -0000
- Subject: [Bug middle-end/42130] [graphite-branch] dealII fails
- References: <bug-42130-15673@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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 <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.
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