Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 34361 invoked from network); 2 Sep 2008 07:30:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Sep 2008 07:30:43 -0000 Received: (qmail 68943 invoked by uid 500); 2 Sep 2008 07:30:40 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 68907 invoked by uid 500); 2 Sep 2008 07:30:40 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 68896 invoked by uid 99); 2 Sep 2008 07:30:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2008 00:30:40 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xiaoming.gu@gmail.com designates 66.249.90.176 as permitted sender) Received: from [66.249.90.176] (HELO ik-out-1112.google.com) (66.249.90.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2008 07:29:42 +0000 Received: by ik-out-1112.google.com with SMTP id c29so998126ika.4 for ; Tue, 02 Sep 2008 00:30:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=worW8d3fE1XlKjmQ/X0VdcqK3e3U5anXvpTjVKmmPhU=; b=BW33RqXtp/B91ril8pB3Z3LteWb3FEL0ZAKX+wyQzYH5WH5buv39xmhsj3+IqnxZGD r2CTpMf3ZrGwnqAxJFlQ+rm+bnV3wwe8qesv2er925poPp1mTuM2vQBx9Y7aT+fw1A3Q rSmuNacXKRZPt2iPoWCnd7Xy7i3DPPon/eMvo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=FwO2PyD0qNh0MOVzTVa7nzKj+N3DCyZsZYfa4Sc5PMFFhy9yonLqgFIVMZc7JpNpWz ueduTjoyVqKMkCu6MdgAReAmyUxMjMBteK4F35a09wUr+YivkVFKctaVqTyNlSkGAP9d UGxOUuIon4ypzshBDHzWq45UEU7KoiQQ1doyA= Received: by 10.210.143.11 with SMTP id q11mr7861678ebd.61.1220340610772; Tue, 02 Sep 2008 00:30:10 -0700 (PDT) Received: by 10.210.29.14 with HTTP; Tue, 2 Sep 2008 00:30:10 -0700 (PDT) Message-ID: <255079590809020030i42e638adocc0ef814b3c520ad@mail.gmail.com> Date: Tue, 2 Sep 2008 15:30:10 +0800 From: "xiaoming gu" To: dev@harmony.apache.org Subject: Re: [jira] Created: (HARMONY-5965) [drlvm][jit]generate Mnemonic_LEA LIR for Op_Shladd HIR in IA32 In-Reply-To: <9623c9a50809012356j6281e601m459823e4c9a04681@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3111_25057921.1220340610774" References: <896435302.1220326724346.JavaMail.jira@brutus> <9623c9a50809012356j6281e601m459823e4c9a04681@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_3111_25057921.1220340610774 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline The work will be done in HIR2LIR pass. Thanks. Xiaoming On Tue, Sep 2, 2008 at 2:56 PM, Xiao-Feng Li wrote: > On Tue, Sep 2, 2008 at 11:38 AM, Xiaoming Gu (JIRA) > wrote: > > [drlvm][jit]generate Mnemonic_LEA LIR for Op_Shladd HIR in IA32 > > --------------------------------------------------------------- > > > > Key: HARMONY-5965 > > URL: https://issues.apache.org/jira/browse/HARMONY-5965 > > Project: Harmony > > Issue Type: Improvement > > Components: DRLVM > > Reporter: Xiaoming Gu > > > > > > In IA32 there is a quick (1 cycle) LEA instruction for loading effective > address. The function of LEA is a combination of shift-left and addition. > For example LEA dst, src, 2, 4 does dst=src<<2+4. It's usually used but not > limited in element address calculation for array. > > > > In current Ia32InstCodeSelector.cpp, the function for translating > Op_Shladd HIR generates shl and add. Since LEA has the same semantic, we > could deploy it to improve performance. > > Thanks for the proposal. Which phase do you suggest to implement this > optimization, IR lowering? > > Thanks, > xiaofebg > > > -- > > This message is automatically generated by JIRA. > > - > > You can reply to this email to add a comment to the issue online. > > > > > > > > -- > http://xiao-feng.blogspot.com > ------=_Part_3111_25057921.1220340610774--