Hi,

PR: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95961 
    
In the test case for PR95961, vectorization factor computed by 
vect_determine_vectorization_factor is [8,8].  But this is updated to [1,1] 
later by vect_update_vf_for_slp.
When we call vect_get_num_vectors in vect_enhance_data_refs_alignment, the 
number of scalars which is based on the vectorization factor is not a multiple 
of the the
number of elements in the vector type.  This leads to the ICE.  We should check 
that before calling vect_get_num_vectors and set local variable 
'possible_npeel_number' to
zero if there are too few scalars.

Bootstrapped and tested on aarch64-linux-gnu.  ChangeLog update are contained 
in the patch.

Comments?

Thanks,
Felix

Attachment: pr95961-v1.diff
Description: pr95961-v1.diff

Reply via email to