[llvm-dev] opt passes

Hal Finkel via llvm-dev llvm-dev at lists.llvm.org
Wed Jul 5 07:49:27 PDT 2017

On 07/04/2017 04:25 AM, Anastasiya Ruzhanskaya via llvm-dev wrote:
> Hello,
>  I am developing now a compiler, based on llvm infrastructure, so I am 
> building my own sequence of llvm passes with some adjustable options.
> I can't find really clear info about some cases, so maybe you can 
> help, and write:
> 0) Why I should always delete attributes before applying optimizations 
> with opt command? With attributes specified no optimization can be 
> applied.

You definitely shouldn't delete attributes in general. Does your 
attribute set include optnone?


> Where I can get real benefit from:
> 1) Constant Hoisting
> -only when we have some large reusable constants in program?
> 2) argpomotion
> - this option does not always replace all my args by reerence with 
> values, when I specify it.
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170705/d3c2c292/attachment.html>

More information about the llvm-dev mailing list