<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 4, 2014 at 10:24 PM, Nick Lewycky <span dir="ltr"><<a href="mailto:nicholas@mxc.ca" target="_blank">nicholas@mxc.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Chandler Carruth wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: chandlerc<br>
Date: Mon Mar  3 13:28:52 2014<br>
New Revision: 202742<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=202742&view=rev" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project?rev=202742&view=rev</a><br>
Log:<br>
[C++11] Remove the completely unnecessary requirement on SetVector's<br>
remove_if that its predicate is adaptable. We don't actually need this,<br>
we can write a generic adapter for any predicate.<br>
<br>
This lets us remove some very wrong std::function usages. We should<br>
never be using std::function for predicates to algorithms. This incurs<br>
an *indirect* call overhead for every evaluation of the predicate, and<br>
makes it very hard to inline through.<br>
</blockquote>
<br></div>
Pardon me sir, are you suggesting that llvm's inliner isn't up to the task?</blockquote></div><br>Yep. Someone should fix that thing.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I'm also suggesting that we shouldn't make it work harder than necessary without good cause.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">;]</div></div>