From patchwork Thu Jun 14 20:32:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 929695 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-479762-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="elyapdNz"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 416Dlp0VXvz9s3C for ; Fri, 15 Jun 2018 05:51:49 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=mCEMuW2LLcdOswKNDgWQtiavxoNNMtfdf3omuyf3wfz3/0zVCqE8Q adNwb6D3LZzTma+8HcwxF9oGi9vvWvuEUneQVodRB/tL7RueAzz3asuWbaQAq1Ia LUIikFWRrRy2WgclblHGtecGqO+Jq1m2t/C+7q0HEc0mrxkX8aRe5Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; s= default; bh=LAztvFKYZCyW8B1LhzbXAZkeL88=; b=elyapdNzS9qeYdwhLH6c hOQggd4iSK5/croH91wR2BY0EWd7wGx55oJvkqK943Y2PA2zG7SoIWlybOEmh30d KT1r0ufzA+oCYtteDqyflIb3kGU2keiZFny+CZp0Mr06hVracpbpNc7ClFlJJTHX X4HNTtzLdKzAOCqzTXTY4z4= Received: (qmail 49704 invoked by alias); 14 Jun 2018 19:50:12 -0000 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 Received: (qmail 49583 invoked by uid 89); 14 Jun 2018 19:50:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.2 spammy=denote X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Jun 2018 19:50:09 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTYFw-0003le-Ir for gcc-patches@gcc.gnu.org; Thu, 14 Jun 2018 15:50:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39682) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fTYFw-0003jh-Cu for gcc-patches@gcc.gnu.org; Thu, 14 Jun 2018 15:50:04 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 484D030832D5; Thu, 14 Jun 2018 19:50:01 +0000 (UTC) Received: from c64.redhat.com (ovpn-112-12.phx2.redhat.com [10.3.112.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 376FA906D1; Thu, 14 Jun 2018 19:50:00 +0000 (UTC) From: David Malcolm To: Richard Biener Cc: GCC Patches , David Malcolm Subject: [PATCH 4/8] tree-vect-loop.c: use MSG_OPTIMIZED_LOCATIONS in a few places Date: Thu, 14 Jun 2018 16:32:51 -0400 Message-Id: <1529008375-20819-5-git-send-email-dmalcolm@redhat.com> In-Reply-To: <1529008375-20819-1-git-send-email-dmalcolm@redhat.com> References: <1529008375-20819-1-git-send-email-dmalcolm@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 X-IsSubscribed: yes I noticed when reviewing an HTML report generated from optimization records generated in turn from the existing API calls that we sometimes use MSG_NOTE when MSG_OPTIMIZED_LOCATIONS would be more appropriate (to denote a successful optimization). gcc/ChangeLog: * tree-vect-loop.c (vect_transform_loop): Use MSG_OPTIMIZED_LOCATIONS rather than MSG_NOTE when reporting on vectorized loops and epilogues. --- gcc/tree-vect-loop.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index e0378ee..cdf8d09 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -8735,19 +8735,19 @@ vect_transform_loop (loop_vec_info loop_vinfo) { if (!LOOP_VINFO_EPILOGUE_P (loop_vinfo)) { - dump_printf_loc (MSG_NOTE, vect_location, + dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, vect_location, "LOOP VECTORIZED\n"); if (loop->inner) - dump_printf_loc (MSG_NOTE, vect_location, + dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, vect_location, "OUTER LOOP VECTORIZED\n"); - dump_printf (MSG_NOTE, "\n"); + dump_printf (MSG_OPTIMIZED_LOCATIONS, "\n"); } else { - dump_printf_loc (MSG_NOTE, vect_location, + dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, vect_location, "LOOP EPILOGUE VECTORIZED (VS="); - dump_dec (MSG_NOTE, current_vector_size); - dump_printf (MSG_NOTE, ")\n"); + dump_dec (MSG_OPTIMIZED_LOCATIONS, current_vector_size); + dump_printf (MSG_OPTIMIZED_LOCATIONS, ")\n"); } }