public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Make vectorizer dumps more comparable
@ 2011-08-24 13:07 Richard Guenther
  2011-08-24 14:40 ` Michael Matz
  2011-09-01  7:31 ` Ira Rosen
  0 siblings, 2 replies; 13+ messages in thread
From: Richard Guenther @ 2011-08-24 13:07 UTC (permalink / raw)
  To: gcc-patches


This avoids the file/location clutter in front of each line
in the vectorizer dump.  While this is useful for people
requesting -fvectorizer-verbose=N in dump files this makes
you unable to compare dumps for testcases on a branch and trunk.
It also makes lines excessively long because the testsuite
filename paths are so long.  Very annoying.

(I'd argue also that -fvectorizer-verbose=N dumps to the dump
file if available and not always to stderr is bogus, but well ...)

This patch has made my life a lot easier debugging the data dependence 
stuff.

Bootstrapped and tested on x86_64-unknown-linux-gnu, installed on trunk.

Richard.

2011-08-24  Richard Guenther  <rguenther@suse.de>

	* tree-vectorizer.c (vect_print_dump_info): Avoid the
	file and location clutter when dumping to dump files.

Index: gcc/tree-vectorizer.c
===================================================================
--- gcc/tree-vectorizer.c	(revision 178028)
+++ gcc/tree-vectorizer.c	(working copy)
@@ -149,7 +149,10 @@ vect_print_dump_info (enum vect_verbosit
   if (!current_function_decl || !vect_dump)
     return false;
 
-  if (vect_location == UNKNOWN_LOC)
+  if (dump_file)
+    fprintf (vect_dump, "\n");
+
+  else if (vect_location == UNKNOWN_LOC)
     fprintf (vect_dump, "\n%s:%d: note: ",
 	     DECL_SOURCE_FILE (current_function_decl),
 	     DECL_SOURCE_LINE (current_function_decl));

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

end of thread, other threads:[~2011-09-01 14:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-24 13:07 [PATCH] Make vectorizer dumps more comparable Richard Guenther
2011-08-24 14:40 ` Michael Matz
2011-08-24 16:14   ` Richard Guenther
2011-09-01  7:31 ` Ira Rosen
2011-09-01  7:33   ` Richard Guenther
2011-09-01  7:51     ` Ira Rosen
2011-09-01  8:06       ` Richard Sandiford
2011-09-01 13:41         ` Michael Matz
2011-09-01 14:41           ` Richard Sandiford
2011-09-01  8:13       ` Richard Guenther
2011-09-01  9:22         ` Ira Rosen
2011-09-01  9:26           ` Richard Guenther
2011-09-01 10:51             ` Ira Rosen

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).