You also need -WOPT:dead=off. The flags related to dead store elimination are these four:

-WOPT:dse=off:dead=off:bdce=0:spre=0

The best documentation about these flags, which are useful only to developers, is by looking at the source files that implement them. In this case, the relevant file is common/com/config_wopt.cxx.

Fred

On 08/19/2010 07:07 PM, eirc.lew wrote:
In my code:
  int a = 10;
then in the program I won't use the variable of a, but the open64 will eliminate the statement of a = 10. I have tried the option of : -WOPT:dse=off:dce=off:dce_alias=off:dce_global=off:dce_branch=off:bdce=off:epre=off:ivar_pre=off:lpre=off -IPA:dve=off:fold_cvt=off.
but it does not work, any suggestions ?

    ----- Original Message -----
    *From:* eirc.lew <mailto:eirc....@gmail.com>
    *To:* Fred Chow <mailto:frdc...@gmail.com> ;
    open64-devel@lists.sourceforge.net
    <mailto:open64-devel@lists.sourceforge.net>
    *Sent:* Friday, August 20, 2010 10:01 AM
    *Subject:* Re: [Open64-devel] How can I filter the constant
    propagation optimization in open64

    Hi, all
        Is there a document of command options about opt and LNO, now
    I have one from AMD, but it did not have all the options, for
    example, there is no -WOPT:icopy=off:copy=off in this document!
    Eric

        ----- Original Message -----
        *From:* Fred Chow <mailto:frdc...@gmail.com>
        *To:* open64-devel@lists.sourceforge.net
        <mailto:open64-devel@lists.sourceforge.net>
        *Sent:* Tuesday, August 17, 2010 6:02 PM
        *Subject:* Re: [Open64-devel] How can I filter the constant
        propagation optimization in open64

        Just add the flags -WOPT:icopy=off:copy=off to turn off copy
        propagation.

        Fred

        On 08/17/2010 12:39 AM, eirc.lew wrote:
        Hi, all
          for example:
           int a;
           int c;
        a = 5;
           int b;
           b += a + c;
        after open64 has compiled, in the whirl it is: b += *5* + c;
        but what I want is: it is still b + = *a* + c;
        any suggestions ?
        Eric


        
------------------------------------------------------------------------------
        This SF.net email is sponsored by

        Make an app they can't live without
        Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev

        _______________________________________________
        Open64-devel mailing list
        Open64-devel@lists.sourceforge.net
        https://lists.sourceforge.net/lists/listinfo/open64-devel

        ------------------------------------------------------------------------
        
------------------------------------------------------------------------------
        This SF.net email is sponsored by

        Make an app they can't live without
        Enter the BlackBerry Developer Challenge
        http://p.sf.net/sfu/RIM-dev2dev

        ------------------------------------------------------------------------
        _______________________________________________
        Open64-devel mailing list
        Open64-devel@lists.sourceforge.net
        https://lists.sourceforge.net/lists/listinfo/open64-devel


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to