Patchwork [arm-embedded] Backport r174965 from trunk to ARM/embedded-4_6-branch

login
register
mail settings
Submitter Terry Guo
Date Sept. 5, 2011, 9:18 a.m.
Message ID <001f01cc6bac$c7d58d30$5780a790$@guo@arm.com>
Download mbox | patch
Permalink /patch/113329/
State New
Headers show

Comments

Terry Guo - Sept. 5, 2011, 9:18 a.m.
Hi,

The checkin at r174965 in trunk fixed vect-27.c failure for ARM EABI target.
Detailed information please refer to
http://gcc.gnu.org/ml/gcc-patches/2011-06/msg00927.html. 

Performed regression test on arm QEMU and no regression.

OK to ARM/embedded-4_6-branch?

BR,
Terry

2011-09-05  Terry Guo  <terry.guo@arm.com>

	Backport r174965 from trunk.

	2011-06-12  Ira Rosen  <ira.rosen@linaro.org>

		* tree-vect-data-refs.c
(vect_peeling_hash_get_most_frequent):
		Take number of iterations to peel into account for equally
frequent
		misalignment values.
Joey Ye - Sept. 6, 2011, 4:08 a.m.
> -----Original Message-----
> From: Terry Guo
> Sent: Monday, September 05, 2011 17:18
> To: Joey Ye; gcc-patches@gcc.gnu.org
> Subject: [arm-embedded] Backport r174965 from trunk to ARM/embedded-
> 4_6-branch
> 
> Hi,
> 
> The checkin at r174965 in trunk fixed vect-27.c failure for ARM EABI
> target.
> Detailed information please refer to
> http://gcc.gnu.org/ml/gcc-patches/2011-06/msg00927.html.
> 
> Performed regression test on arm QEMU and no regression.
> 
> OK to ARM/embedded-4_6-branch?
OK

> 
> BR,
> Terry
> 
> 2011-09-05  Terry Guo  <terry.guo@arm.com>
> 
> 	Backport r174965 from trunk.
> 
> 	2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
> 
> 		* tree-vect-data-refs.c
> (vect_peeling_hash_get_most_frequent):
> 		Take number of iterations to peel into account for equally
> frequent
> 		misalignment values.
> 
> Index: gcc/tree-vect-data-refs.c
> ===================================================================
> --- gcc/tree-vect-data-refs.c	(revision 178517)
> +++ gcc/tree-vect-data-refs.c	(working copy)
> @@ -1250,7 +1250,9 @@
>    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;
>

Patch

Index: gcc/tree-vect-data-refs.c
===================================================================
--- gcc/tree-vect-data-refs.c	(revision 178517)
+++ gcc/tree-vect-data-refs.c	(working copy)
@@ -1250,7 +1250,9 @@ 
   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;