From patchwork Thu Nov 26 08:31:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sujoy Saraswati X-Patchwork-Id: 57320 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp372858lbb; Thu, 26 Nov 2015 00:32:41 -0800 (PST) X-Received: by 10.66.100.135 with SMTP id ey7mr15142711pab.108.1448526761396; Thu, 26 Nov 2015 00:32:41 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id 65si40451872pfo.90.2015.11.26.00.32.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2015 00:32:41 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-415461-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-415461-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-415461-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:from :to:cc:subject:date:message-id:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=ZZW z9tuRR9lhEG74mp+3KjWLnL2C+1FjIMcdKmATI/RNGzE4aYhg/ndsfIiBcK3ksIX bL0J+oeD3jWawJFHo0O0kycfzEe/VsCiWJECI8ZOuWQgZ06NHWaQFwc5+YTheGsx ECGclcrsJPr70+1qPSlHUeEwc+MN0eCMltusWDIA= 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:from :to:cc:subject:date:message-id:content-type :content-transfer-encoding:mime-version; s=default; bh=dCnLqsOa2 +1AWC9vnJ7MVgeSMoQ=; b=doSzrr9WYSF7w09Q5Sm5tQwSrcaPD+1S84d6Ml6Wu bB8A60Y5VXxsabIQqT3wuvHVEcqjhl/ztE7qv5UL0iS1shjV3biddNEuu58B6Vhz IFixkNUoECioEOD8RzdC9CsIjjdmNNuYhACJtmXGX9+LEsifcTaZuxp/7OWulsYq qI= Received: (qmail 89064 invoked by alias); 26 Nov 2015 08:32:27 -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 89053 invoked by uid 89); 26 Nov 2015 08:32:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL, BAYES_50, KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: g4t3425.houston.hp.com Received: from g4t3425.houston.hp.com (HELO g4t3425.houston.hp.com) (15.201.208.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 26 Nov 2015 08:32:26 +0000 Received: from G9W0364.americas.hpqcorp.net (g9w0364.houston.hp.com [16.216.193.45]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by g4t3425.houston.hp.com (Postfix) with ESMTPS id 9B407A6; Thu, 26 Nov 2015 08:32:24 +0000 (UTC) Received: from G9W3617.americas.hpqcorp.net (16.216.186.52) by G9W0364.americas.hpqcorp.net (16.216.193.45) with Microsoft SMTP Server (TLS) id 14.3.169.1; Thu, 26 Nov 2015 08:31:36 +0000 Received: from G4W3297.americas.hpqcorp.net ([169.254.11.80]) by G9W3617.americas.hpqcorp.net ([16.216.186.52]) with mapi id 14.03.0169.001; Thu, 26 Nov 2015 08:31:36 +0000 From: "Saraswati, Sujoy (OSTL)" To: Joseph Myers , Sujoy Saraswati , GCC Patches CC: Richard Biener Subject: Fix 61441 [3/5] Remove flag_errno_math check for RINT Date: Thu, 26 Nov 2015 08:31:35 +0000 Message-ID: <5379BA8D7E9D7E4D87BF6749A92854C248FC90C9@G4W3297.americas.hpqcorp.net> MIME-Version: 1.0 Hi, This patch removes flag_errno_math check for RINT, treating it similar to nearbyint. Regards, Sujoy 2015-11-26 Sujoy Saraswati PR tree-optimization/61441 * match.pd (f(x) -> x): Removed flag_errno_math check for RINT. Index: gcc/match.pd =================================================================== --- gcc/match.pd (revision 230851) +++ gcc/match.pd (working copy) @@ -2565,16 +2565,10 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (fns (fns @0)) (fns @0))) /* f(x) -> x if x is integer valued and f does nothing for such values. */ -(for fns (TRUNC FLOOR CEIL ROUND NEARBYINT) +(for fns (TRUNC FLOOR CEIL ROUND NEARBYINT RINT) (simplify (fns integer_valued_real_p@0) @0)) -/* Same for rint. We have to check flag_errno_math because - integer_valued_real_p accepts +Inf, -Inf and NaNs as integers. */ -(if (!flag_errno_math) - (simplify - (RINT integer_valued_real_p@0) - @0)) /* hypot(x,0) and hypot(0,x) -> abs(x). */ (simplify