<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 2, 2016, at 11:06 AM, Matthew Simpson <<a href="mailto:mssimpso@codeaurora.org" class="">mssimpso@codeaurora.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Dec 2, 2016 at 1:30 PM, Michael Kuperstein via llvm-dev <span dir="ltr" class=""><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">It isn't relevant, really, Matt just brought up "llc --version" as a way to show the default triple and native cpu. <div class="">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 class="">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 class=""></div><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 class=""></div><div>That is why I think bringing llc into the discussion was confusing, at least I think it confused Renato.  My whole point was that you can write target-independent tests with *opt* but not with llc of course (which I think was Renato’s conclusion).</div><div><br class=""></div><div>Adam</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><br class=""></div><div class="gmail_extra">-- Matt</div></div>
</div></blockquote></div><br class=""></body></html>