From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61639 invoked by alias); 13 Jun 2016 10:10:25 -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 61625 invoked by uid 89); 13 Jun 2016 10:10:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wm0-f51.google.com Received: from mail-wm0-f51.google.com (HELO mail-wm0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 13 Jun 2016 10:10:14 +0000 Received: by mail-wm0-f51.google.com with SMTP id m124so72222445wme.1 for ; Mon, 13 Jun 2016 03:10:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=vvbw1MGCymJUD/5mMFAN2GkiLAwEhRR+9u8raW8h/7M=; b=IM+aLGl3SRhmM8P3XLZgl5jamZzKC3gBFZezJLYyOGCIxDcjYd72MHzracnsn8Q3ZA w/0I0AekvhUGSYPpu/F/U6sJbOATOYMZhTq+q88XLqe9xzgPbZuB77YPeYexpqpMEQNd CPJHMpl8XByvPFKUjSwrPeNkSV0/6bETRZQVnwOl5eyX23RC9DHcB9eGkkJCfvm8ZBVl QVH5zf2lN9zcw3z7E0/JDXLVlnbHKEogsxnGi/aHhO6P0Ldyt82gH4fLP9bhkBsUxyOH sSLi9LaFf2rV6n9mSPh7l5FKuIFo21Lg2llzU51KuOeskkvPUPfQSBCwukj8lZGUtxpK Tacg== X-Gm-Message-State: ALyK8tJ0iOGTjrZrR0BMUqrXO/Vj7Rq8o7LFsNA9theBkkP4Hwacp+c7+dtX/V4k22qfGfJG5rcf7zebsonw2Q== X-Received: by 10.28.154.214 with SMTP id c205mr298309wme.9.1465812611438; Mon, 13 Jun 2016 03:10:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.87.34 with HTTP; Mon, 13 Jun 2016 03:10:10 -0700 (PDT) In-Reply-To: References: From: Richard Biener Date: Mon, 13 Jun 2016 10:10:00 -0000 Message-ID: Subject: Re: [PATCH PR71347][Partial revert r235513]Compute cost for all uses in group To: Bin Cheng Cc: "gcc-patches@gcc.gnu.org" , nd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg00930.txt.bz2 On Mon, Jun 13, 2016 at 11:57 AM, Bin Cheng wrote: > Hi, > This patch partially reverts part of r235513 to fix PR71347, the original= patch is to improve compilation time for a small amount. Root cause as an= alyzed in bugzilla PR is that we can't skip computing cost for sub iv_use i= f it has different position to the first use in group. The patch also incl= udes a new test. > > Bootstrap and test on x86_64. Is it OK? Ok. Richard. > Thanks, > bin > > 2016-05-31 Bin Cheng > > PR tree-optimization/71347 > * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compu= te > cost for all uses in group. > > gcc/testsuite/ChangeLog > 2016-05-31 Bin Cheng > > PR tree-optimization/71347 > * gcc.dg/tree-ssa/pr71347.c: New test.