This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30404] Wrong FORALL result
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2007 17:25:49 -0000
- Subject: [Bug fortran/30404] Wrong FORALL result
- References: <bug-30404-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from kargl at gcc dot gnu dot org 2007-01-11 17:25 -------
(In reply to comment #3)
> Paul, Steve, Please let me know if you see an issue with the above analysis.
> Hopefully, the three-loop strategy of (i) determine mask size, (ii) populate
> mask and (iii) conditionally execute loop makes sense?
Roger, I haven't looked too closely at the guts of the forall implementation,
but your analysis and 3-loop strategy to fixing the bug seems reasonable. In
fact, most of the forall code may be the original code implemented by pbrook.
I particularly like the concept of "make it work and then worry about
optimizations". One thing to keep in mind is that the forall statement is
a parallel assignment operation. You may be able to take advantage of the
tree-vectorize work for the inner loop.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30404