<div dir="ltr">I don't know of a way to do it from the command-line, but if you're willing to change the IR, you can add the optsize (for -Os) or minsize (for -Oz) IR attribute to the function you're compiling.<div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 2, 2016 at 5:59 AM, Bruce Hoult via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Idle question, if anyone is reading still ... how do you get llc to do -Os or -Oz? The docs say the argument must be an integer, and anything other than 0..3 is rejected. (in fact .. bug report ... 10 thru 39 are also silently accepted as are 100 thru 399 etc)<br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br></div></div></div></blockquote><div><br></div><div> </div></div></div></div></div>