<p dir="ltr"><br>
On 14 Jan 2013 09:10, "Chandler Carruth" <<a href="mailto:chandlerc@gmail.com">chandlerc@gmail.com</a>> wrote:<br>
><br>
> This has been an idea floating around in my head for a while and after several discussions with others it continues to hold up so I thought I would mail it out. Sorry for cross posting to both lists, but this is an issue that would significantly impact both LLVM and Clang.<br>

></p>
<p dir="ltr">><br>
> 3) Optimize quickly or '-O1'<br>
> - Attribute: quickopt (this would be a new attribute)<br>
> - Goal: Perform basic optimizations to improve both performance and simplicity of the code, but perform them *quickly*.<br>
> 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.<br>
></p>
<p dir="ltr">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.</p>