<div dir="ltr"><div>Oh, ok, so the difference in practice is which triple llc and opt default to - llc defaults to LLVM_DEFAULT_TARGET_TRIPLE, and opt defaults to "".</div><div><br><div>I never realized that - I thought opt also defaults to the, well, default.</div><div>Thanks!<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 2, 2016 at 11:12 AM, Adam Nemet <span dir="ltr"><<a href="mailto:anemet@apple.com" target="_blank">anemet@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class="gmail-"><blockquote type="cite"><div>On Dec 2, 2016, at 11:06 AM, Matthew Simpson <<a href="mailto:mssimpso@codeaurora.org" target="_blank">mssimpso@codeaurora.org</a>> wrote:</div><br class="gmail-m_-7258048207059932298Apple-interchange-newline"><div><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 2, 2016 at 1:30 PM, Michael Kuperstein 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">It isn't relevant, really, Matt just brought up "llc --version" as a way to show the default triple and native cpu. <div>The same question ("Which TTI do/should we get with -mcpu=generic / when not providing -mcpu at all") applies to opt.</div></div></blockquote></div><br>And just to be clear in case there was any confusion, in opt when a target is not specified we get the generic TTI, not one for the host or default triple indicated by llc. I think this was Adam's original point/question. As long as the tests we want to remain target-independent don't specify a target triple, we should get the same generic TTI on any host.</div></div></div></blockquote><div><br></div></span><div>Yes opt an llc are completely different in this regard.  llc always needs a target to generate code for.  opt does not, it uses data layout and TTI (the default if not target is specified).</div><div><br></div></div></div></blockquote></div></div></div></div></div></div>