From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48493 invoked by alias); 31 Oct 2017 22:15:42 -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 48480 invoked by uid 89); 31 Oct 2017 22:15:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1044 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 31 Oct 2017 22:15:41 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 343B283F46; Tue, 31 Oct 2017 22:15:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 343B283F46 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=jakub@redhat.com Received: from tucnak.zalov.cz (ovpn-116-247.ams2.redhat.com [10.36.116.247]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A3BD15D6A3; Tue, 31 Oct 2017 22:15:39 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id v9VMFZom008979; Tue, 31 Oct 2017 23:15:35 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id v9VMFVN6008978; Tue, 31 Oct 2017 23:15:31 +0100 Date: Tue, 31 Oct 2017 23:20:00 -0000 From: Jakub Jelinek To: Richard Biener , Jeff Law , Eric Botcazou , Michael Collison Cc: GCC Patches , nd Subject: Re: [PATCH][compare-elim] Fix PR rtl-optimization/82597 Message-ID: <20171031221531.GZ14653@tucnak> Reply-To: Jakub Jelinek References: <20171031093559.GS14653@tucnak> <20171031110226.GT14653@tucnak> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171031110226.GT14653@tucnak> User-Agent: Mutt/1.7.1 (2016-10-04) X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg02379.txt.bz2 On Tue, Oct 31, 2017 at 12:02:26PM +0100, Jakub Jelinek wrote: > 2017-10-31 Jakub Jelinek > > PR rtl-optimization/82778 > PR rtl-optimization/82597 > * compare-elim.c (struct comparison): Add in_a_setter field. > (find_comparison_dom_walker::before_dom_children): Remove killed > bitmap and df_simulate_find_defs call, instead walk the defs. > Compute last_setter and initialize in_a_setter. Merge definitions > with first initialization for a few variables. > (try_validate_parallel): Use insn_invalid_p instead of > recog_memoized. Return insn rather than just the pattern. > (try_merge_compare): Fix up comment. Don't uselessly test if > in_a is a REG_P. Use cmp->in_a_setter instead of walking UD > chains. > > * g++.dg/opt/pr82778.C: New test. > > 2017-10-31 Michael Collison > > PR rtl-optimization/82597 > * gcc.dg/pr82597.c: New test. Successfully bootstrapped/regtested on {x86_64,i686,powerpc64{,le}}-linux. Ok for trunk? Jakub