[LLVMdev] FYI: Phoronix GCC vs. LLVM-GCC benchmarks

Eric Christopher echristo at apple.com
Wed Sep 16 10:52:56 PDT 2009

On Sep 16, 2009, at 10:36 AM, Daniel Dunbar wrote:

> Since we are in the area, what *should* O1 do?
> It's basically good for nothing, since it doesn't tune for size or
> performance. The only good I personally ever have for it is once in a
> while there is a miscompile at -O1 which narrows the problem.
> Would it be crazy to make -O1 equivalent to -Os?

I've always used O1 for a quick cleanup so that my debug code doesn't  
completely suck, but hasn't been optimized into oblivion for gdb.   
Also makes looking at the resultant assembly dumps fairly easy.

But yes, that'd be crazy :)


More information about the llvm-dev mailing list