[LLVMdev] [cfe-dev] RFC: Codifying (but not formalizing) the optimization levels in LLVM and Clang

Chandler Carruth
2013-01-14T22:58:46Z

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/llvm-dev/attachments/20130114/9721a467/attachment.html>