http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60505
--- Comment #4 from Cong Hou <congh at gcc dot gnu.org> --- Author: congh Date: Thu Apr 3 23:05:42 2014 New Revision: 209065 URL: http://gcc.gnu.org/viewcvs?rev=209065&root=gcc&view=rev Log: 2014-04-03 Cong Hou <co...@google.com> PR tree-optimization/60505 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the threshold of number of iterations below which no vectorization will be done. * tree-vect-loop.c (new_loop_vec_info): Initialize LOOP_VINFO_COST_MODEL_THRESHOLD. * tree-vect-loop.c (vect_analyze_loop_operations): Set LOOP_VINFO_COST_MODEL_THRESHOLD. * tree-vect-loop.c (vect_transform_loop): Use LOOP_VINFO_COST_MODEL_THRESHOLD. * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number of iterations of the loop and see if we should build the epilogue. 2014-04-03 Cong Hou <co...@google.com> PR tree-optimization/60505 * gcc.dg/vect/pr60505.c: New test. Added: trunk/gcc/testsuite/gcc.dg/vect/pr60505.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vect-loop.c trunk/gcc/tree-vectorizer.h