This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/46785] Doesn't vectorize reduction x += y*y
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 3 Dec 2010 15:39:52 +0000
- Subject: [Bug tree-optimization/46785] Doesn't vectorize reduction x += y*y
- Auto-submitted: auto-generated
- References: <bug-46785-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46785
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-12-03 15:39:49 UTC ---
Btw, I wonder why we bother to check the defs at all and not just do
def1 && flow_bb_inside_loop_p (loop, gimple_bb (def1))
we should be able to handle all vectorizable reduction operands, and
their vectorizability will be determined anyway.