From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30229 invoked by alias); 7 Jun 2011 04:16:32 -0000 Received: (qmail 30219 invoked by uid 22791); 7 Jun 2011 04:16:30 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-qw0-f47.google.com (HELO mail-qw0-f47.google.com) (209.85.216.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Jun 2011 04:16:16 +0000 Received: by qwh5 with SMTP id 5so2226940qwh.20 for ; Mon, 06 Jun 2011 21:16:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.106.34 with SMTP id v34mr4183764qco.111.1307420175358; Mon, 06 Jun 2011 21:16:15 -0700 (PDT) Received: by 10.229.47.78 with HTTP; Mon, 6 Jun 2011 21:16:15 -0700 (PDT) In-Reply-To: <1306850415.5243.6.camel@L3G5336.ibm.com> References: <1306850415.5243.6.camel@L3G5336.ibm.com> Date: Tue, 07 Jun 2011 04:16:00 -0000 Message-ID: Subject: Re: [PATCH] Remove pow/powi expanders (PR46728 patch 6) From: "H.J. Lu" To: "William J. Schmidt" Cc: gcc-patches@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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 X-SW-Source: 2011-06/txt/msg00474.txt.bz2 On Tue, May 31, 2011 at 7:00 AM, William J. Schmidt wrote: > This patch removes the now-redundant support for pow and powi builtins > in the expand phase. =A0My concerns about -O0 regressions were unfounded. > There are code gen differences for the unlikely combination of -O0 and > -ffast-math, but that's obviously nothing to be concerned about. > > Bootstrapped and regtested for powerpc64-linux with no regressions. =A0OK > for trunk? > > 2011-05-31 =A0Bill Schmidt =A0 > > =A0 =A0 =A0 =A0PR tree-optimization/46728 > =A0 =A0 =A0 =A0* builtins.c (powi_table): Remove. > =A0 =A0 =A0 =A0(powi_lookup_cost): Remove. > =A0 =A0 =A0 =A0(powi_cost): Remove. > =A0 =A0 =A0 =A0(expand_powi_1): Remove. > =A0 =A0 =A0 =A0(expand_powi): Remove. > =A0 =A0 =A0 =A0(expand_builtin_pow_root): Remove. > =A0 =A0 =A0 =A0(expand_builtin_pow): Remove. > =A0 =A0 =A0 =A0(expand_builtin_powi): Eliminate handling of constant expo= nent. > =A0 =A0 =A0 =A0(expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN= _POW. > > This caused: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49302 H.J.