[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

Devang Patel devang.patel at gmail.com
Tue Jun 2 14:43:03 PDT 2009


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.

-
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.



More information about the llvm-commits mailing list