This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30201] gcc doesn't unroll nested loops
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Dec 2006 15:41:33 -0000
- Subject: [Bug middle-end/30201] gcc doesn't unroll nested loops
- References: <bug-30201-13749@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from bangerth at dealii dot org 2006-12-14 15:41 -------
Hm, now, with -DUNROLL, gcc realizes that it writes to data[] all the
times with no reads and moves all the writes out of the loop. I suppose
it's no surprise that the code is fast (the loop looks pretty atrocious,
though, and is not collapsed to anything reasonable, though).
Of course, this is what should have happened with the original code as
well.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30201