Skip to content

Commit

Permalink
tree-optimization/110614 - SLP splat and re-align (optimized)
Browse files Browse the repository at this point in the history
The following properly guards the re-align (optimized) paths used
on old power CPUs for the added case of SLP splats from non-grouped
loads.  Testcases are existing in dg-torture.

Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed.

	PR tree-optimization/110614
	* tree-vect-data-refs.cc (vect_supportable_dr_alignment):
	SLP splats are not suitable for re-align ops.
  • Loading branch information
rguenth authored and ouuleilei-bot committed Jul 11, 2023
1 parent c2d62cd commit 333c2bf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gcc/tree-vect-data-refs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6815,10 +6815,11 @@ vect_supportable_dr_alignment (vec_info *vinfo, dr_vec_info *dr_info,
same alignment, instead it depends on the SLP group size. */
if (loop_vinfo
&& STMT_SLP_TYPE (stmt_info)
&& !multiple_p (LOOP_VINFO_VECT_FACTOR (loop_vinfo)
* (DR_GROUP_SIZE
(DR_GROUP_FIRST_ELEMENT (stmt_info))),
TYPE_VECTOR_SUBPARTS (vectype)))
&& (!STMT_VINFO_GROUPED_ACCESS (stmt_info)
|| !multiple_p (LOOP_VINFO_VECT_FACTOR (loop_vinfo)
* (DR_GROUP_SIZE
(DR_GROUP_FIRST_ELEMENT (stmt_info))),
TYPE_VECTOR_SUBPARTS (vectype))))
;
else if (!loop_vinfo
|| (nested_in_vect_loop
Expand Down

0 comments on commit 333c2bf

Please sign in to comment.