[cfe-dev] RFC: Codifying (but not formalizing) the optimization levels in LLVM and Clang
Chandler Carruth
chandlerc at gmail.com
Mon Jan 14 14:58:46 PST 2013
On Mon, Jan 14, 2013 at 2:07 PM, Christopher Jefferson <
chris at bubblescope.net> wrote:
> > 3) Optimize quickly or '-O1'
> > - Attribute: quickopt (this would be a new attribute)
> > - Goal: Perform basic optimizations to improve both performance and
> simplicity of the code, but perform them *quickly*.
> > This level is all about compile time, but in a holistic sense. It tries
> to perform basic optimizations to get reasonably efficient code, and get it
> very quickly.
> >
>
> GCC tries to make -O1 be compatible with debugging. I find having
> debugging functional with some level of optimisation very useful,
> particularly in template heavy C++ code. I don't know if there is an
> optimisation level with similar behaviour in clang.
>
I'm happy to have an added goal here of code that is reasonable to debug,
but I think before we can have that we need to have at least *some* idea
what that constitutes. Currently, I have no really good ideas....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130114/9721a467/attachment.html>
More information about the cfe-dev
mailing list