From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25220 invoked by alias); 10 Aug 2010 16:27:15 -0000 Received: (qmail 25181 invoked by uid 22791); 10 Aug 2010 16:27:14 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Aug 2010 16:27:09 +0000 Received: from wpaz17.hot.corp.google.com (wpaz17.hot.corp.google.com [172.24.198.81]) by smtp-out.google.com with ESMTP id o7AGR7KO005174 for ; Tue, 10 Aug 2010 09:27:07 -0700 Received: from gwj18 (gwj18.prod.google.com [10.200.10.18]) by wpaz17.hot.corp.google.com with ESMTP id o7AGR6vH030607 for ; Tue, 10 Aug 2010 09:27:06 -0700 Received: by gwj18 with SMTP id 18so3961906gwj.30 for ; Tue, 10 Aug 2010 09:27:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.58.20 with SMTP id g20mr19211592yba.0.1281457625643; Tue, 10 Aug 2010 09:27:05 -0700 (PDT) Received: by 10.220.182.141 with HTTP; Tue, 10 Aug 2010 09:27:05 -0700 (PDT) In-Reply-To: References: <20100809075525.GA16026@kam.mff.cuni.cz> Date: Tue, 10 Aug 2010 16:31:00 -0000 Message-ID: Subject: Re: IVOPT improvement patch From: Xinliang David Li To: "H.J. Lu" Cc: Zdenek Dvorak , GCC Patches , Richard Guenther , Pat Haugen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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: 2010-08/txt/msg00774.txt.bz2 Yes -- fixed the typo. Will retest and then commit. THanks, David On Tue, Aug 10, 2010 at 7:12 AM, H.J. Lu wrote: > On Tue, Aug 10, 2010 at 6:16 AM, H.J. Lu wrote: >> On Mon, Aug 9, 2010 at 4:47 PM, Xinliang David Li w= rote: >>> Wrong patch in the last email. Here is the one. >>> >> >> You changed the code from setting "off" to setting "offset": >> >> - =A0 =A0 =A0data->min_offset =3D i =3D=3D start ? 0 : -(i >> 1); >> + =A0 =A0 =A0data->max_offset =3D (i =3D=3D -1? 0 : off); >> + =A0 =A0 =A0offset =3D data->max_offset; >> >> "off" is used later: >> >> 3345 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (off_p) >> 3346 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 base =3D gen_rtx_fmt_e (CONST, addr= ess_mode, >> 3347 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 gen_rtx_fmt_ee >> 3348 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 (PLUS, address_mode, base, >> 3349 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0gen_int_mode (off, >> address_mode))) =A0 =A0 ; >> 3350 =A0 =A0 =A0 =A0 =A0 =A0 } >> 3351 =A0 =A0 =A0 =A0 =A0 else if (off_p) >> 3352 =A0 =A0 =A0 =A0 =A0 =A0 base =3D gen_int_mode (off, address_mode); >> 3353 =A0 =A0 =A0 =A0 =A0 else >> >> You can just add >> >> off =3D 0; >> >> before the loop. Then you can use >> >> data->min_offset =3D off; >> data->max_offset =3D off; >> >> after the loop. It is faster. >> > > Never mind this comment. But "off" is different from before. > > > > -- > H.J. >