This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/58497] SLP vectorizes identical operations
- 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: Thu, 22 Oct 2015 13:37:18 +0000
- Subject: [Bug tree-optimization/58497] SLP vectorizes identical operations
- Auto-submitted: auto-generated
- References: <bug-58497-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58497
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Oct 22 13:36:46 2015
New Revision: 229173
URL: https://gcc.gnu.org/viewcvs?rev=229173&root=gcc&view=rev
Log:
2015-10-22 Richard Biener <rguenther@suse.de>
PR tree-optimization/58497
* tree-vect-generic.c (ssa_uniform_vector_p): New helper.
(expand_vector_operations_1): Use it. Lower operations on
all uniform vectors to scalar operations if the HW supports it.
* gcc.dg/tree-ssa/vector-5.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/vector-5.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-generic.c
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Now we fix this up in veclower, still the bug should be addressed in SLP
directly
(also because it affects cost decisions).