[llvm-commits] [llvm] r70270 - in /llvm/trunk: 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/Alpha/AsmPrinter/ lib

Evan Cheng evan.cheng at apple.com
Tue Jun 2 21:59:03 PDT 2009


On Jun 2, 2009, at 2:43 PM, Devang Patel wrote:

> On Tue, Jun 2, 2009 at 1:59 PM, Evan Cheng <evan.cheng at apple.com>  
> wrote:
>>
>> On Jun 2, 2009, at 10:32 AM, Devang Patel wrote:
>>
>>> We already use a function attribute for -Os. Why not do the same  
>>> here
>>> ?
>>
>> This controls what codegen passes are being run. It's done once for
>> the whole compilation.
>
> This info should be encoded in bc files so that we don't have to
> remember passing additional command line option on llc (and other
> tools that operate on bc files). BTW, -Os is also applied to entire
> compilation unit.

Sure. We can do that. That just means we can either control the  
codegen optimization level from llc command line or use the  
information encoded in bc file. This patch is still needed.

Evan
>
> -
> Devang
>
>> Function notes are for finer grain control that
>> tell these passes to "behave" differently for individual functions.
>> Yes, we could use function notes to control optimization level for
>> individual functions. But I view that as a different issue.
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list