From patchwork Sun Dec 21 21:51:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prathamesh Kulkarni X-Patchwork-Id: 42505 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5099B2188F for ; Sun, 21 Dec 2014 21:51:29 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id y19sf2233310wgg.3 for ; Sun, 21 Dec 2014 13:51:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:mime-version:date:message-id:subject:from:to :content-type:x-original-sender:x-original-authentication-results; bh=ShbSgwJ+ymPBL3OEy3VSevSv7l1HeqfrEM8W4db7n7Q=; b=UYFIL+M+DaS0EyXoFs2+AzEyGQDR3D/cKZKhS5wEa0EATdoZJnKkFzqYYtsPu/w7oE 29SBDBchrsjxqdQaVvl/XL3CDSSFagnT00W5SCs0O7YsY9tAYqZmxRwJsVpumJtIoArd +x33+17uMA/3b9cgDZ+ozl9eSndF6J1KeYxu6v3joJclgGK+7nT6VC0fHMUUzLW/MYzg mU0R+v1ewqWLQtFVdOhAOCy8TLRI+eENwt463FpR+FR+ClCCUVC0bVevJDqfAlvQcrZt iJntjs/EEtuDQ2QWelQc61ykHlbgzbtWsRI4mh4YSA00On4OWPATPk6wHA5l2N8nPVPk 8eHg== X-Gm-Message-State: ALoCoQn0mr8FBDl65Z86t0+y5RA56ggMMJY0gtiAi396SL+rByjZWj0K32bD451+Ukdq4aKAQb/e X-Received: by 10.180.108.101 with SMTP id hj5mr1697670wib.3.1419198688484; Sun, 21 Dec 2014 13:51:28 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.37 with SMTP id ll5ls1671504lac.53.gmail; Sun, 21 Dec 2014 13:51:28 -0800 (PST) X-Received: by 10.153.11.170 with SMTP id ej10mr18930513lad.24.1419198688192; Sun, 21 Dec 2014 13:51:28 -0800 (PST) Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com. [2a00:1450:4010:c04::233]) by mx.google.com with ESMTPS id t10si1467859lbb.71.2014.12.21.13.51.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Dec 2014 13:51:27 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::233 as permitted sender) client-ip=2a00:1450:4010:c04::233; Received: by mail-lb0-f179.google.com with SMTP id z11so3022639lbi.38 for ; Sun, 21 Dec 2014 13:51:27 -0800 (PST) X-Received: by 10.112.41.234 with SMTP id i10mr19153527lbl.25.1419198687378; Sun, 21 Dec 2014 13:51:27 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp863522lbb; Sun, 21 Dec 2014 13:51:25 -0800 (PST) X-Received: by 10.68.218.231 with SMTP id pj7mr30014839pbc.95.1419198684751; Sun, 21 Dec 2014 13:51:24 -0800 (PST) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id br6si712988pdb.251.2014.12.21.13.51.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Dec 2014 13:51:24 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-387900-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 10351 invoked by alias); 21 Dec 2014 21:51:09 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 10341 invoked by uid 89); 21 Dec 2014 21:51:07 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lb0-f181.google.com Received: from mail-lb0-f181.google.com (HELO mail-lb0-f181.google.com) (209.85.217.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 21 Dec 2014 21:51:06 +0000 Received: by mail-lb0-f181.google.com with SMTP id l4so3135385lbv.12 for ; Sun, 21 Dec 2014 13:51:03 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.152.228.164 with SMTP id sj4mr18211519lac.98.1419198662886; Sun, 21 Dec 2014 13:51:02 -0800 (PST) Received: by 10.25.211.16 with HTTP; Sun, 21 Dec 2014 13:51:02 -0800 (PST) Date: Sun, 21 Dec 2014 21:51:02 +0000 Message-ID: Subject: [match-and-simplify] Remove printing "for expression" From: Prathamesh Kulkarni To: Richard Biener , gcc Patches X-IsSubscribed: yes X-Original-Sender: prathamesh.kulkarni@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::233 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 Hi, I removed printing "for expression:" from print_matches. I think it is out of place tvim here and we call print_matches after lowering. OK to commit ? Thanks, Prathamesh 2014-12-12 Prathamesh Kulkarni * genmatch.c (print_matches): Change type of first parameter to operand *. Remove call to fprintf to print "for expression: ". (main): Adjust call to print_matches. Index: gcc/genmatch.c =================================================================== --- gcc/genmatch.c (revision 218996) +++ gcc/genmatch.c (working copy) @@ -645,10 +645,9 @@ } DEBUG_FUNCTION void -print_matches (struct simplify *s, FILE *f = stderr) +print_matches (operand *o, FILE *f = stderr) { - fprintf (f, "for expression: "); - print_operand (s->match, f); + print_operand (o, f); putc ('\n', f); } @@ -3672,7 +3671,7 @@ if (verbose) for (unsigned i = 0; i < pred->matchers.length (); ++i) - print_matches (pred->matchers[i]); + print_matches (pred->matchers[i]->match); decision_tree dt; for (unsigned i = 0; i < pred->matchers.length (); ++i) @@ -3689,7 +3688,7 @@ if (verbose) for (unsigned i = 0; i < p.simplifiers.length (); ++i) - print_matches (p.simplifiers[i]); + print_matches (p.simplifiers[i]->match); decision_tree dt; for (unsigned i = 0; i < p.simplifiers.length (); ++i)