This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This patch adds two if-then guards to implementation of unknown loop bound for vectorizer. First if-then statement prevents entering the loop to be vectorized in case the number of iteration loop executes is less then vectorization factor. Second if-then statement skips the scalar (epilog) loop in case the number of iteration it executes is divisible by vectorization factor. ChangeLog * tree-vectorizer.c (vect_generate_tmps_on_preheader): (vect_gen_if_guard): New functions. (vect_update_initial_conditions_of_duplicated_loop): Update also phis of bb at the exit of epilog loop. (vect_transform_loop): Remove code that now belongs to vect_generate_tmps_on_preheader () function. Use vect_gen_if_guard function twice. (See attached file: diffJ11_2.txt)
Attachment:
diffJ11_2.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |