public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [google] Backport r174965 from trunk to google/gcc-4_6 (issue4852046)
@ 2011-08-08  6:01 Guozhi Wei
  2011-08-15 11:58 ` Carrot Wei
  2011-08-15 17:22 ` Diego Novillo
  0 siblings, 2 replies; 3+ messages in thread
From: Guozhi Wei @ 2011-08-08  6:01 UTC (permalink / raw)
  To: reply, gcc-patches

Hi

I want to backport r174965 from trunk to google/gcc-4_6, which fixed vect-72.c
failure in target arm, as described in
http://gcc.gnu.org/ml/gcc-patches/2011-06/msg00927.html

Tested with buildit and regression test on arm qemu.

OK for google/gcc-4_6 ?

thanks
Carrot


2011-08-08  Guozhi Wei  <carrot@google.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: tree-vect-data-refs.c
===================================================================
--- tree-vect-data-refs.c	(revision 177320)
+++ tree-vect-data-refs.c	(working copy)
@@ -1250,7 +1250,9 @@ vect_peeling_hash_get_most_frequent (voi
   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;


--
This patch is available for review at http://codereview.appspot.com/4852046

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [google] Backport r174965 from trunk to google/gcc-4_6 (issue4852046)
  2011-08-08  6:01 [google] Backport r174965 from trunk to google/gcc-4_6 (issue4852046) Guozhi Wei
@ 2011-08-15 11:58 ` Carrot Wei
  2011-08-15 17:22 ` Diego Novillo
  1 sibling, 0 replies; 3+ messages in thread
From: Carrot Wei @ 2011-08-15 11:58 UTC (permalink / raw)
  To: reply, gcc-patches

ping

On Mon, Aug 8, 2011 at 11:00 AM, Guozhi Wei <carrot@google.com> wrote:
>
> Hi
>
> I want to backport r174965 from trunk to google/gcc-4_6, which fixed vect-72.c
> failure in target arm, as described in
> http://gcc.gnu.org/ml/gcc-patches/2011-06/msg00927.html
>
> Tested with buildit and regression test on arm qemu.
>
> OK for google/gcc-4_6 ?
>
> thanks
> Carrot
>
>
> 2011-08-08  Guozhi Wei  <carrot@google.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: tree-vect-data-refs.c
> ===================================================================
> --- tree-vect-data-refs.c       (revision 177320)
> +++ tree-vect-data-refs.c       (working copy)
> @@ -1250,7 +1250,9 @@ vect_peeling_hash_get_most_frequent (voi
>   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;
>
>
> --
> This patch is available for review at http://codereview.appspot.com/4852046

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [google] Backport r174965 from trunk to google/gcc-4_6 (issue4852046)
  2011-08-08  6:01 [google] Backport r174965 from trunk to google/gcc-4_6 (issue4852046) Guozhi Wei
  2011-08-15 11:58 ` Carrot Wei
@ 2011-08-15 17:22 ` Diego Novillo
  1 sibling, 0 replies; 3+ messages in thread
From: Diego Novillo @ 2011-08-15 17:22 UTC (permalink / raw)
  To: Guozhi Wei; +Cc: reply, gcc-patches

On Sun, Aug 7, 2011 at 23:00, Guozhi Wei <carrot@google.com> wrote:

> 2011-08-08  Guozhi Wei  <carrot@google.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.

OK.

Diego.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-15 15:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-08  6:01 [google] Backport r174965 from trunk to google/gcc-4_6 (issue4852046) Guozhi Wei
2011-08-15 11:58 ` Carrot Wei
2011-08-15 17:22 ` Diego Novillo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).