<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jul 23, 2013, at 5:22 AM, reed kotler <<a href="mailto:rkotler@mips.com">rkotler@mips.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">On 07/23/2013 05:19 AM, Konstantin Tokarev wrote:<br><blockquote type="cite"><br>23.07.2013, 16:05, "reed kotler" <<a href="mailto:rkotler@mips.com">rkotler@mips.com</a>>:<br><blockquote type="cite">When I use -Os with a clang that implicitly calls llc, I get much<br>different code than when call clang first with -Os and then call llc.<br></blockquote>clang does NOT call llc internally.<br></blockquote>I understand. It's invoking that functionality is what I meant to say but not technically<br>running that command.<br></div></blockquote><div><br></div><div>This isn’t just a nitpick. This is exactly why you’re seeing differences. The pass managers aren’t always set up the same, for example.</div><div><br></div><div>FWIW, I feel your pain. This is a long-standing weakness of our infrastructure.</div><div><br></div><div>-Jim</div><br><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><blockquote type="cite"><br><blockquote type="cite">How do I get these two paths to generate the same code?<br></blockquote>Call llc with -Os?<br></blockquote>You can't pass -Os to llc.<br><br>-Os is a clang only option. It's reflected in the IR used by llc in the function attributes.<br><br><br>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a><span class="Apple-converted-space"> </span> <a href="http://llvm.cs.uiuc.edu/">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a></div></blockquote></div><br></body></html>