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: 972 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:47:53 -0000 Delivered-To: patches@linaro.org Received: by 10.68.59.138 with SMTP id z10cs177708pbq; Tue, 12 Apr 2011 06:05:19 -0700 (PDT) Received: by 10.216.87.131 with SMTP id y3mr4424209wee.3.1302613518123; Tue, 12 Apr 2011 06:05:18 -0700 (PDT) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id f62si1794655wej.153.2011.04.12.06.05.17 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Apr 2011 06:05:18 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of richard.sandiford@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of richard.sandiford@linaro.org) smtp.mail=richard.sandiford@linaro.org Received: by wwc33 with SMTP id 33so7420561wwc.31 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 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. **/