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

Daniel Dunbar daniel at zuster.org
Fri Sep 18 00:38:38 PDT 2009


On Wed, Sep 16, 2009 at 10:52 AM, Eric Christopher <echristo at apple.com> wrote:
> 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.

If this is from the compiler programmer perspective, we have better
tools for that. If this is from the user perspective, currently they
all are bad with LLVM for the former, and we should similarly fix all
of them. :)

> But yes, that'd be crazy :)

Was that a -1 on doing it, though? :)

 - Daniel




More information about the llvm-dev mailing list