This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/51848] GCC is not able to vectorize when a constant value is also added to the sum of array expression inside a loop.
- From: "irar at il dot ibm.com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 15 Jan 2012 08:06:09 +0000
- Subject: [Bug middle-end/51848] GCC is not able to vectorize when a constant value is also added to the sum of array expression inside a loop.
- Auto-submitted: auto-generated
- References: <bug-51848-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51848
Ira Rosen <irar at il dot ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |irar at il dot ibm.com
--- Comment #2 from Ira Rosen <irar at il dot ibm.com> 2012-01-15 08:06:09 UTC ---
We don't recognize this as reduction because we look for:
a1 = phi < a0, a2 >
a3 = ...
a2 = operation (a3, a1)
and here we have
a1 = phi < a0, a2 >
a3 = ...
a4 = operation (a3, a1)
a2 = a4 + 1