From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118008 invoked by alias); 15 Sep 2016 05:56:07 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 117988 invoked by uid 89); 15 Sep 2016 05:56:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=hubicka@ucw.cz, D*ucw.cz, hubickaucwcz, Hubicka X-HELO: mail-wm0-f45.google.com Received: from mail-wm0-f45.google.com (HELO mail-wm0-f45.google.com) (74.125.82.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 15 Sep 2016 05:55:56 +0000 Received: by mail-wm0-f45.google.com with SMTP id b187so78951103wme.1 for ; Wed, 14 Sep 2016 22:55:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:from:date:to:cc:message-id; bh=4db4x180e3+Pf/dXKW6n67/gu98jG3enowrokmpQXsE=; b=iI04sDqfjRyTJp4ouYInFUKwopdKxu2qmQo5HONt5INuL2VrvK3koxcmcrsQoNqDYR 8ZBlEgYY/htyesat+ij3uNKO/lnWVUmnHKB3ChiP0CJNs4pED0j1UATC2A5YkjDibxeK GcjWMUWR30QISgG8U/rmTp8pVDL3dSZGbo6XLNZIKfYsOGEYFIROM8ymbkK7JdJEsxL/ HOKYJzFBJfwlfnSbRsp8U9sbD6DUNrPx304VfEJU4EFafOVx/naJZkmFdZ4dWAiLavcT m9xAZiWfuFQM/ekj8zDU7gWN/iRzzVZz/aecuIf+ywz+NqV5ZuSvfzcjMD54xO78W1aK z5lA== X-Gm-Message-State: AE9vXwMUug14etOFwgBtheZYiLEzHI8ccES3jl/q1/BFQd4gluGREVLoCo0UnN1F5fhZvw== X-Received: by 10.28.183.135 with SMTP id h129mr1275249wmf.2.1473918954440; Wed, 14 Sep 2016 22:55:54 -0700 (PDT) Received: from 192-168-178-29.fritz.box (p5DC9AA0F.dip0.t-ipconnect.de. [93.201.170.15]) by smtp.gmail.com with ESMTPSA id f10sm1650371wje.14.2016.09.14.22.55.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Sep 2016 22:55:52 -0700 (PDT) User-Agent: K-9 Mail for Android In-Reply-To: <20160914213616.GA88954@kam.mff.cuni.cz> References: <19ff8188-aed7-0f9e-cc0b-0603698787ff@linaro.org> <48e42d0c-057c-312a-4e41-cd78c8b38b5e@linaro.org> <20160914213616.GA88954@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [RFC][IPA-VRP] Early VRP Implementation From: Richard Biener Date: Thu, 15 Sep 2016 07:23:00 -0000 To: Jan Hubicka CC: Kugan Vivekanandarajah ,Andrew Pinski ,"gcc-patches@gcc.gnu.org" ,Martin Jambor Message-ID: X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00907.txt.bz2 On September 14, 2016 11:36:16 PM GMT+02:00, Jan Hubicka wrote: >> + /* Visit PHI stmts and discover any new VRs possible. */ >> + gimple_stmt_iterator gsi; >> + for (gphi_iterator gpi = gsi_start_phis (bb); >> + !gsi_end_p (gpi); gsi_next (&gpi)) >> + { >> + gphi *phi = gpi.phi (); >> + tree lhs = PHI_RESULT (phi); >> + value_range vr_result = VR_INITIALIZER; >> + if (! has_unvisived_preds >> && stmt_interesting_for_vrp (phi) >> + && stmt_visit_phi_node_in_dom_p (phi)) >> + extract_range_from_phi_node (phi, &vr_result, true); >> + else >> + set_value_range_to_varying (&vr_result); >> + update_value_range (lhs, &vr_result); >> + } >> >> due to a bug in IRA you need to make sure to un-set BB_VISITED after >> early-vrp is finished again. >How IRA bugs affects early passes? IRA bogously relies on BB_VISITED being cleared at pass start. Richard. >Honza