From: Ira Rosen Date: Sun, 12 Jun 2011 06:37:49 +0000 (+0000) Subject: tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent): Take number of iteration... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44542f8e0b9b9f34d90ee15c660f1e2034ace2cc;p=gcc.git tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent): Take number of iterations to peel into account for equally frequent... * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent): Take number of iterations to peel into account for equally frequent misalignment values. From-SVN: r174965 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 57b374d8ede..a1dd32d885e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-06-12 Ira Rosen + + * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent): + Take number of iterations to peel into account for equally frequent + misalignment values. + 2011-06-11 Jan Hubicka * lto-streamer-out.c (produce_symtab): Stream out the newly represented diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 5023710f1e5..c98eb13b225 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -1248,7 +1248,9 @@ vect_peeling_hash_get_most_frequent (void **slot, void *data) vect_peel_info elem = (vect_peel_info) *slot; vect_peel_extended_info max = (vect_peel_extended_info) data; - if (elem->count > max->peel_info.count) + if (elem->count > max->peel_info.count + || (elem->count == max->peel_info.count + && max->peel_info.npeel > elem->npeel)) { max->peel_info.npeel = elem->npeel; max->peel_info.count = elem->count;