This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/53773] Vectorizer generates non-canonical multiplies
- From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 Jul 2012 16:26:47 +0000
- Subject: [Bug tree-optimization/53773] Vectorizer generates non-canonical multiplies
- Auto-submitted: auto-generated
- References: <bug-53773-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53773
--- Comment #4 from William J. Schmidt <wschmidt at gcc dot gnu.org> 2012-07-27 16:26:47 UTC ---
Operand swapping is also done in vect_is_slp_reduction.
Places that rely on the reduction operand being the last operand:
* vect_model_reduction_cost
* vectorizable_reduction
* vect_recog_dot_prod_pattern
* vect_recog_widen_sum_pattern
Some commentary in vectorizable_reduction indicates that the last-operand rule
is not used for nested cycles, so there are a few places where a reduc_index
parameter is passed around instead.