harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Timoshenko <george.timoshe...@gmail.com>
Subject Re: [drlvm][opt] what does 'irBuilderFlags.expandMemAddrs' mean?
Date Wed, 07 May 2008 02:46:15 GMT
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.
> 


Mime
View raw message