[cfe-dev] [LLVMdev] [PROPOSAL] per-function optimization level control

Evan Cheng evan.cheng at apple.com
Mon Jun 3 11:37:51 PDT 2013


The pass manager, as it is designed now, doesn't have the capability to dynamically change pass configurations. Until that's fixed, the only way to do this would be for clang to build multiple pass managers. That would open a can of worm though. 

Evan

Sent from my iPad

On May 29, 2013, at 8:04 AM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:

>> Wasn't this already proposed?
>> http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-January/058112.html
>> 
>> LLVM already has optsize.  Maybe it's just a matter of hooking up gcc's
>> attr(optimize) to it in clang, as a first approximation.
> 
> Looks like it, yes!
> 
> Chandler, what were you thoughts on the pass manager? Should it select
> the set of passes for a function based on the function's attributes?
> 
> Cheers,
> Rafael
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the cfe-dev mailing list