<div dir="ltr">On 23 July 2013 12:34, reed kotler <span dir="ltr"><<a href="mailto:rkotler@mips.com" target="_blank">rkotler@mips.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How do I get these two paths to generate the same code?<br></blockquote><div></div></div><br></div><div class="gmail_extra">Hi Reed,</div><div class="gmail_extra"><br></div><div class="gmail_extra">First, make sure that it's really -Os that is generating the difference by calling clang -v -Os, and explicitly calling all flags apart from -Os and then compare the results. Try to mimic as many parameters in llc as possible, with llc specific flags.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I've seen this happen when lowering to specific ARM cores and if I didn't use the same relevant flags on both sides, the final code would be broken.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">--renato</div></div>