[cfe-dev] [LLVMdev] [RFC] add Function Attribute to disable optimization

Andrea_DiBiagio at sn.scee.net Andrea_DiBiagio at sn.scee.net
Thu Jul 18 09:48:54 PDT 2013


> From: Nick Lewycky <nicholas at mxc.ca>
> Andrea_DiBiagio at sn.scee.net wrote:
> > So..
> > I have investigated more on how a new function attribute to disable
> > optimization on a per-function basis could be implemented.
> > At the current state, with the lack of specific support from the pass
> > managers I found two big problems when trying to implement a prototype
> > implementation of the new attribute.
> >
> > Here are the problems found:
> > 1) It is not safe to disable some transform passes in the backend.
> 
> Hold on. By 'backend' do you mean LLVM IR FunctionPasses, or LLVM 
> CodeGen MachineFunctionPasses? The former you should be able to turn 
> off, reorder, etc., at will. The latter is a fixed pipeline, you either 
> choose the -O0 pipeline or the -O2 pipeline.

Sorry, I meant CodeGen MachineFunctionPasses.


**********************************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error please notify postmaster at scee.net
This footnote also confirms that this email message has been checked for 
all known viruses.
Sony Computer Entertainment Europe Limited
Registered Office: 10 Great Marlborough Street, London W1F 7LP, United 
Kingdom
Registered in England: 3277793
**********************************************************************

P Please consider the environment before printing this e-mail



More information about the cfe-dev mailing list