From patchwork Fri Jan 22 06:36:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kugan Vivekanandarajah X-Patchwork-Id: 60119 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp455939lbb; Thu, 21 Jan 2016 22:36:36 -0800 (PST) X-Received: by 10.98.18.208 with SMTP id 77mr2084778pfs.94.1453444596853; Thu, 21 Jan 2016 22:36:36 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id xe7si7486108pab.3.2016.01.21.22.36.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jan 2016 22:36:36 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-419773-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-return-419773-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-419773-patch=linaro.org@gcc.gnu.org; dkim=pass header.i=@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=xYWyzpXJw3BR6WmOnEdlPr6JFxBETcFdB/TojUaNeq/J43qYJl RD2Kt0r/fpYzNn41ijBwFjQEiBRWd6QtyH/irtpa9dStALvgteue48u2RuJ01/pu +/SEYInnOmTVC/FvjXV+YbXZMCxpeF70WTIWrGIS3joOgdUR5sRTB3KDc= 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:to:cc :from:subject:message-id:date:mime-version:content-type; s= default; bh=/pnodMP5udD1WCGtrH7myMOhWjU=; b=yJgVuzUsSChZ0TMSgUjB ReTunkFIWcpjTiR65ebpD7D+/JWWSvt968QRkaHLEi6EIktCr/X9H/7wrtadUQOb 9Ja914CkZVR7NFj0CHFbpbOkJi4ozbmsD3SDvQ5tkvk6M0Y7IXNuDW43lJ4vxEOK UQZQo6+me7HyMA3l+LzjX1o= Received: (qmail 38526 invoked by alias); 22 Jan 2016 06:36:24 -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 38502 invoked by uid 89); 22 Jan 2016 06:36:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=UD:value, 4026, 2016-01-22, 20160122 X-HELO: mail-pf0-f175.google.com Received: from mail-pf0-f175.google.com (HELO mail-pf0-f175.google.com) (209.85.192.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 22 Jan 2016 06:36:22 +0000 Received: by mail-pf0-f175.google.com with SMTP id e65so37040299pfe.0 for ; Thu, 21 Jan 2016 22:36:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-type; bh=X6GUHER33aXX7ziwuf/JvY9VsqDxPrYAUEzX9/ik+2k=; b=LwROBYENm89M7Xp9vToATWYKsrh8tbs+RrODkVIrSwuOe2bVO1VB6s88s/o+pHgpJ8 WEukgRUND8F1MKAo5hDvgf7JR4pW5S6Kl/1I3Qxf27JmUGpXjWmgZ97GotAh2kpHgd1H IdBaBIOcXvimu/kJp+a29yyfH3IqH8VjkZGcShLVGfsd+MOwLxiDcZ7Lz7s1qoieLbt2 aebiFWMq48fG/wjzpvDLzJ5Ipls0ACraH5D9nXivqzHN3qBkzaU5RL35tHjF9gYuQajm V7KFrOIi6ZJwSUmv0DKpZdtkrICSguczuPi3j7MXvrs/CczvbuMav3k4x4mEs49Q+AVs ZgBw== X-Gm-Message-State: AG10YOT2q8pkNYVFDZuO2vyMyJuG/bL2/nfCQ6c4W65FLPrDBXzWDDXm/7+5ZRtlZquwiCZ9 X-Received: by 10.98.76.92 with SMTP id z89mr2043691pfa.91.1453444580857; Thu, 21 Jan 2016 22:36:20 -0800 (PST) Received: from [10.1.1.11] (58-6-183-210.dyn.iinet.net.au. [58.6.183.210]) by smtp.googlemail.com with ESMTPSA id xr8sm6837634pab.26.2016.01.21.22.36.18 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jan 2016 22:36:20 -0800 (PST) To: "gcc-patches@gcc.gnu.org" Cc: Jan Hubicka From: Kugan Subject: Remove redundant unshare_expr from ipa-prop Message-ID: <56A1CDDE.7040100@linaro.org> Date: Fri, 22 Jan 2016 17:36:14 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 X-IsSubscribed: yes Hi, There is a redundant unshare_expr in ipa-prop. Attached patch removes it. Bootstrapped and regression tested on x86_64-pc-linux-gnu with no new regressions. Is this OK for trunk? Thanks, Kugan gcc/ChangeLog: 2016-01-22 Kugan Vivekanandarajah * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr. diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 06a9aa2..d62c704 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -402,9 +402,6 @@ static void ipa_set_jf_constant (struct ipa_jump_func *jfunc, tree constant, struct cgraph_edge *cs) { - constant = unshare_expr (constant); - if (constant && EXPR_P (constant)) - SET_EXPR_LOCATION (constant, UNKNOWN_LOCATION); jfunc->type = IPA_JF_CONST; jfunc->value.constant.value = unshare_expr_without_location (constant);