Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 59756 invoked from network); 7 May 2008 02:47:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2008 02:47:04 -0000 Received: (qmail 81874 invoked by uid 500); 7 May 2008 02:47:05 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 81656 invoked by uid 500); 7 May 2008 02:47:04 -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 81643 invoked by uid 99); 7 May 2008 02:47:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2008 19:47:04 -0700 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcjhd-harmony-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 02:46:18 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JtZfl-0008Tf-ER for dev@harmony.apache.org; Wed, 07 May 2008 02:46:25 +0000 Received: from 195.161.50.68 ([195.161.50.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 May 2008 02:46:25 +0000 Received: from george.timoshenko by 195.161.50.68 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 May 2008 02:46:25 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: dev@harmony.apache.org From: George Timoshenko Subject: Re: [drlvm][opt] what does 'irBuilderFlags.expandMemAddrs' mean? Date: Wed, 07 May 2008 09:46:15 +0700 Lines: 25 Message-ID: <482117F7.1080209@gmail.com> References: <3db9f87f0805060621l10ca111ah807bbf066b23b29@mail.gmail.com> <0vqskwvjht0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 195.161.50.68 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) In-Reply-To: <0vqskwvjht0.fsf@gmail.com> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org expandMemAddr is true by default. I am not sure if it wrorks correctly in the 'false' case. This flag is obsolet actually. It should be removed. Egor Pasko wrote: > On the 0x43C day of Apache Harmony Simon Chow wrote: >> Hi all >> I found this flag is frequently used when generating 'Store' related >> instruction. >> if it is set, makeMultiSrcInst is used, otherwise makeFieldAccessInst is >> used, is that right? and Why is that? > > after "Lazy Resolution" feature has been implemented, you can safely > assume expandMemAddrs is always true, otherwise it just does not > work. > > true makes indirect loads by addresses > false makes special instructions like ldfield > > I dunno why there were two ways to do the same thing for ages. Maybe > true value helped memopt (so you do not have to teach it with ldfield > stuff), not sure. >