<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 Jul 25, 2016, at 12:19 AM, ZhaoKang 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=""><p class="MsoNormal"><span lang="EN-US" style="color:#1F497D" class="">Hello LLVM,<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color: rgb(31, 73, 125); line-height: 1.2;" class=""><br class=""></span></p><p class="MsoNormal"><span style="color: rgb(31, 73, 125); line-height: 1.2;" class="">We found that many
LLVM passes use map/set containers to increase the searching efficiency.</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1F497D" class="">Although map/set has
automatic sorting feature, the results after the same pass transformation are
still the same.<o:p class=""></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1F497D" class="">If native map/set, we
think the order after inserting new element may change.<o:p class=""></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1F497D" class="">So, my question is,
does LLVM use its own-defined structure instead of native map/set? Or, LLVM
disables such feature for map/set?</span></p></div></blockquote><div><br class=""></div><div>I don’t really understand the question, can you provide an example of passes and what problem do you expect?</div><div><br class=""></div><div>— </div><div>Mehdi</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><p class="MsoNormal"><span lang="EN-US" style="color:#1F497D" class=""><o:p class=""></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1F497D" class="">Could you give a
detailed explanation?<o:p class=""></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1F497D" class="">Thanks!<o:p class=""></o:p></span></p><div class=""><span lang="EN-US" style="color:#1F497D" class=""> </span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span lang="EN-US" style="color:#1F497D" class="">Kang<o:p class=""></o:p></span></p><br class=""><br class=""><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="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></body></html>