From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16385 invoked by alias); 24 Aug 2011 11:21:06 -0000 Received: (qmail 16376 invoked by uid 22791); 24 Aug 2011 11:21:06 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Aug 2011 11:20:52 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id F1E898D167 for ; Wed, 24 Aug 2011 13:20:50 +0200 (CEST) Date: Wed, 24 Aug 2011 13:07:00 -0000 From: Richard Guenther To: gcc-patches@gcc.gnu.org Subject: [PATCH] Make vectorizer dumps more comparable Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-08/txt/msg01987.txt.bz2 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 * 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));