On 05/27/2013 10:48 PM, Evan Cheng wrote:> I don't quite understand your question. Clang already supports -Os option. > > EvanOkay. Do I need to add anything to the llc command line?> Sent from my iPad > > On May 27, 2013, at 7:47 PM, reed kotler <rkotler at mips.com> wrote: > >> I'm trying to set the default optimizations for mips16. >> >> Mips16 is a processor mode for code size compression. >> >> So for clang I want to add -Os, I think. >> >> In general I don't want the compiler to automatically inline, I think. >> I assume that clang would do some trivial inlines but have not checked. >> >> Anything else I should add to clang? >> >> What about LLVM? >> >> There is no -Os there. >> >> Tia. >> >> Reed >> >> >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Sent from my iPad On May 27, 2013, at 10:49 PM, reed kotler <rkotler at mips.com> wrote:> On 05/27/2013 10:48 PM, Evan Cheng wrote: >> I don't quite understand your question. Clang already supports -Os option. >> >> Evan > Okay. > > Do I need to add anything to the llc command line?No. It's captured as a function attribute. Evan> >> Sent from my iPad >> >> On May 27, 2013, at 7:47 PM, reed kotler <rkotler at mips.com> wrote: >> >>> I'm trying to set the default optimizations for mips16. >>> >>> Mips16 is a processor mode for code size compression. >>> >>> So for clang I want to add -Os, I think. >>> >>> In general I don't want the compiler to automatically inline, I think. >>> I assume that clang would do some trivial inlines but have not checked. >>> >>> Anything else I should add to clang? >>> >>> What about LLVM? >>> >>> There is no -Os there. >>> >>> Tia. >>> >>> Reed >>> >>> >>> >>> _______________________________________________ >>> LLVM Developers mailing list >>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >
Does -O0 disable inlining? On 05/27/2013 10:52 PM, Evan Cheng wrote:> > Sent from my iPad > > On May 27, 2013, at 10:49 PM, reed kotler <rkotler at mips.com> wrote: > >> On 05/27/2013 10:48 PM, Evan Cheng wrote: >>> I don't quite understand your question. Clang already supports -Os option. >>> >>> Evan >> Okay. >> >> Do I need to add anything to the llc command line? > No. It's captured as a function attribute. > > Evan > >>> Sent from my iPad >>> >>> On May 27, 2013, at 7:47 PM, reed kotler <rkotler at mips.com> wrote: >>> >>>> I'm trying to set the default optimizations for mips16. >>>> >>>> Mips16 is a processor mode for code size compression. >>>> >>>> So for clang I want to add -Os, I think. >>>> >>>> In general I don't want the compiler to automatically inline, I think. >>>> I assume that clang would do some trivial inlines but have not checked. >>>> >>>> Anything else I should add to clang? >>>> >>>> What about LLVM? >>>> >>>> There is no -Os there. >>>> >>>> Tia. >>>> >>>> Reed >>>> >>>> >>>> >>>> _______________________________________________ >>>> LLVM Developers mailing list >>>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >>