From patchwork Fri Dec 17 19:10:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 75959 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 88A83B6F07 for ; Sat, 18 Dec 2010 06:10:25 +1100 (EST) Received: (qmail 28186 invoked by alias); 17 Dec 2010 19:10:23 -0000 Received: (qmail 28171 invoked by uid 22791); 17 Dec 2010 19:10:22 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, SARE_SUB_PCT_LETTER, TW_VZ, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 17 Dec 2010 19:10:16 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 17 Dec 2010 11:10:14 -0800 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by orsmga002.jf.intel.com with ESMTP; 17 Dec 2010 11:10:14 -0800 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 88516180A62; Fri, 17 Dec 2010 11:10:14 -0800 (PST) Date: Fri, 17 Dec 2010 11:10:14 -0800 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: PATCH: Replace "BB [%i]" with "[bb %i]" in vzeroupper RTL dump Message-ID: <20101217191014.GA2923@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, This patch replaces "BB [%i]" with "[bb %i]" in vzeroupper RTL dump so that it is consistent with other basic block dump. One can search "bb XX" in vzeroupper RTL dump. I am checking it in. H.J. --- 2010-12-17 H.J. Lu * config/i386/i386.c (move_or_delete_vzeroupper_2): Replace "BB [%i]" with "[bb %i]" in dump. (move_or_delete_vzeroupper_1): Likewise. (rescan_move_or_delete_vzeroupper): Likewise. Always dump upper 128bit state at exit. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index e9c14d0..a5603e6 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -131,7 +131,7 @@ move_or_delete_vzeroupper_2 (basic_block bb, int count = BLOCK_INFO (bb)->count; if (dump_file) - fprintf (dump_file, " BB [%i] entry: upper 128bits: %d\n", + fprintf (dump_file, " [bb %i] entry: upper 128bits: %d\n", bb->index, state); /* BB_END changes when it is deleted. */ @@ -267,7 +267,7 @@ move_or_delete_vzeroupper_2 (basic_block bb, } if (dump_file) - fprintf (dump_file, " BB [%i] exit: upper 128bits: %d\n", + fprintf (dump_file, " [bb %i] exit: upper 128bits: %d\n", bb->index, state); } @@ -282,7 +282,7 @@ move_or_delete_vzeroupper_1 (basic_block block) enum upper_128bits_state state; if (dump_file) - fprintf (dump_file, " Process BB [%i]: status: %d\n", + fprintf (dump_file, " Process [bb %i]: status: %d\n", block->index, BLOCK_INFO (block)->processed); if (BLOCK_INFO (block)->processed) @@ -331,7 +331,7 @@ rescan_move_or_delete_vzeroupper (basic_block block) enum upper_128bits_state state; if (dump_file) - fprintf (dump_file, " Rescan BB [%i]: status: %d\n", + fprintf (dump_file, " Rescan [bb %i]: status: %d\n", block->index, BLOCK_INFO (block)->rescanned); if (BLOCK_INFO (block)->rescanned) @@ -359,6 +359,9 @@ rescan_move_or_delete_vzeroupper (basic_block block) { if (state == used) BLOCK_INFO (block)->state = state; + if (dump_file) + fprintf (dump_file, " [bb %i] exit: upper 128bits: %d\n", + block->index, BLOCK_INFO (block)->state); } else move_or_delete_vzeroupper_2 (block, state);