diff options
author | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-12 06:37:49 +0000 |
---|---|---|
committer | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-12 06:37:49 +0000 |
commit | 593fa4d1e488e3cf8687d6e06296fe45807be7cc (patch) | |
tree | 81f8dbb2317d72ce50de60679d260b6419ab4f0b /gcc/tree-vect-data-refs.c | |
parent | e1f8de321a66974ad163eb5e2ac813fe90de2169 (diff) | |
download | gcc-593fa4d1e488e3cf8687d6e06296fe45807be7cc.tar.gz |
* tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
Take number of iterations to peel into account for equally
frequent misalignment values.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174965 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-data-refs.c')
-rw-r--r-- | gcc/tree-vect-data-refs.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |