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: 571542 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DFA2814030F for ; Fri, 22 Jan 2016 17:36:32 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=q5G5Yp+W; dkim-atps=neutral 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=feixCnkhnTrodAs7K4iAjCRlk6LqxIMO+T4WpMjYaODeKc8Hus AL7y5bHnjV2EXT11qvkykWY/2ZVrLsQeVLqdWxF0P1IKrxk9HH7rrow5Dn0MmaE4 mGFhEa6x6RnCodZQHwZklxpWeXxmOMObuxhyOGyC84qOdR+qn/DWIBmkA= 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=q5G5Yp+WIJ/q807pMma6 jexXY1s1QQnrPGzb2w6MsDVh6xmOdwR0yh05Vkz3K4lCglgC/hsArr0reLgm7NJc Lf/pCqTQ3MOjByIFQVcimwVIwUtTbTAskaW9fxieVJTRGwYAnwhCqMD86ciHmgjl p34lD5iPnAr0wuu/3O8CWtc= 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);