<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></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 Feb 12, 2016, at 7:55 AM, David Blaikie via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Names are optional and have overhead - we usually try not to emit names (Clang produces IR with names in an Asserts build, but otherwise it omits them - there's not as much of that logic in the LLVM optimizers, so even starting with a non-Asserts Clang output you'll still find the optimizers introduce names for instructions)<br class=""></div></div></blockquote><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><br class="">At some point we would want to try to more fully remove the construction of named instructions in the IR in non-Asserts builds across the stack, it's just overhead we want to avoid in production execution.</div></div></blockquote><div><br class=""></div><div><div>That's something I figured recently (too many calls to strlen on my non-assert profile...). The "switch" seems triggered on the IRBuilder (if I remember correctly), so any IRBuilder created instruction won' t have a name in release build.</div><div>Should we favor the use of the IR builder in optimization that manipulates name? Or should we do something else to prevent the use of names in release build. Introduce a flag to build clang with the name field totally removed in "super released build"?</div><div><br class=""></div><div>-- </div><div>Mehdi</div><div class=""><br class=""></div></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Feb 12, 2016 at 7:00 AM, Carlos Alba 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=""><div class=""><div class=""><div class="">Hi everyone,<br class=""><br class=""></div>Some instructions in llvm have names and for some of them the name is empty. Now, I wanted to know which instructions have names? <br class=""><br class=""></div>Best,<br class=""></div>Carlo<br class=""></div>
<br class="">_______________________________________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></body></html>