[llvm-commits] [llvm] r70343 - in /llvm/trunk: docs/CommandGuide/ include/llvm/CodeGen/ include/llvm/Target/ lib/CodeGen/ lib/CodeGen/AsmPrinter/ lib/CodeGen/SelectionDAG/ lib/Target/ARM/ lib/Target/ARM/AsmPrinter/ lib/Target/Alpha/ lib/Target/Al

Bill Wendling isanbard at gmail.com
Wed Apr 29 16:10:58 PDT 2009


On Wed, Apr 29, 2009 at 2:28 PM, Evan Cheng <evan.cheng at apple.com> wrote:
>
> On Apr 29, 2009, at 2:23 PM, Bill Wendling wrote:
>
>> On Wed, Apr 29, 2009 at 2:16 PM, Evan Cheng <evan.cheng at apple.com>
>> wrote:
>>> Bill, you still have to change LTOCodeGenerator.cpp.
>>
>> Done.
>>
>>> Also, rather than
>>> an unsigned for OptLevel, should it be an enum instead? We basically
>>> want to support a knob with 3 levels: no optimization, default
>>> optimization, aggressive optimization. Those correspond to -O0, -
>>> O1 / -
>>> O2 / -Os, -O3.
>>>
>> I'll look into this.
>
> Thanks. With an enum, we can actually document what the values
> mean. :-)

Obviously madness! ;-)

> For llc, lli, and LTO, I think it makes sense to use the
> "aggressive" level by default.
>
I was thinking of having an "LTO" level in the enum...

-bw



More information about the llvm-commits mailing list