Patchwork Extra dump output from vectorizable_load

login
register
mail settings
Submitter Richard Sandiford
Date April 12, 2011, 1:05 p.m.
Message ID <g4y63ffwmv.fsf@linaro.org>
Download mbox | patch
Permalink /patch/90777/
State New
Headers show

Comments

Richard Sandiford - April 12, 2011, 1:05 p.m.
vectorizable_store prints the number of copies in the dump output,
but vectorizable_loads doesn't.

Tested on x86_64-linux-gnu and arm-linux-gnueabi.  OK to install?

Richard


gcc/
	* tree-vect-stmts.c (vectorizable_load): Print the number of copies
	in the dump file.
Richard Guenther - April 12, 2011, 1:20 p.m.
On Tue, Apr 12, 2011 at 3:05 PM, Richard Sandiford
<richard.sandiford@linaro.org> wrote:
> vectorizable_store prints the number of copies in the dump output,
> but vectorizable_loads doesn't.
>
> Tested on x86_64-linux-gnu and arm-linux-gnueabi.  OK to install?

Ok.

Thanks,
Richard.

> Richard
>
>
> gcc/
>        * tree-vect-stmts.c (vectorizable_load): Print the number of copies
>        in the dump file.
>
> Index: gcc/tree-vect-stmts.c
> ===================================================================
> --- gcc/tree-vect-stmts.c       2011-04-12 11:53:54.000000000 +0100
> +++ gcc/tree-vect-stmts.c       2011-04-12 11:55:07.000000000 +0100
> @@ -3935,7 +3935,7 @@ vectorizable_load (gimple stmt, gimple_s
>     }
>
>   if (vect_print_dump_info (REPORT_DETAILS))
> -    fprintf (vect_dump, "transform load.");
> +    fprintf (vect_dump, "transform load. ncopies = %d", ncopies);
>
>   /** Transform.  **/
>
>

Patch

Index: gcc/tree-vect-stmts.c
===================================================================
--- gcc/tree-vect-stmts.c	2011-04-12 11:53:54.000000000 +0100
+++ gcc/tree-vect-stmts.c	2011-04-12 11:55:07.000000000 +0100
@@ -3935,7 +3935,7 @@  vectorizable_load (gimple stmt, gimple_s
     }
 
   if (vect_print_dump_info (REPORT_DETAILS))
-    fprintf (vect_dump, "transform load.");
+    fprintf (vect_dump, "transform load. ncopies = %d", ncopies);
 
   /** Transform.  **/