From patchwork Tue Apr 12 13:05:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 90777 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 99AF0B6F47 for ; Tue, 12 Apr 2011 23:05:25 +1000 (EST) Received: (qmail 1103 invoked by alias); 12 Apr 2011 13:05:23 -0000 Received: (qmail 1095 invoked by uid 22791); 12 Apr 2011 13:05:22 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Apr 2011 13:05:18 +0000 Received: by wwf26 with SMTP id 26so7621519wwf.8 for ; Tue, 12 Apr 2011 06:05:17 -0700 (PDT) Received: by 10.216.120.129 with SMTP id p1mr77670weh.81.1302613516995; Tue, 12 Apr 2011 06:05:16 -0700 (PDT) Received: from richards-thinkpad (gbibp9ph1--blueice2n1.emea.ibm.com [195.212.29.75]) by mx.google.com with ESMTPS id r57sm3173483wes.25.2011.04.12.06.05.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Apr 2011 06:05:16 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, patches@linaro.org, richard.sandiford@linaro.org Cc: patches@linaro.org Subject: Extra dump output from vectorizable_load Date: Tue, 12 Apr 2011 14:05:12 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 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 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. 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. **/