<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt"><br><br><div class="gmail_quote">On Thu, Nov 29, 2012 at 2:08 PM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Nov 29, 2012 at 1:54 AM, Kostya Serebryany <<a href="mailto:kcc@google.com">kcc@google.com</a>> wrote:<br>

> @@ -857,6 +861,7 @@<br>
>    if (BL->isIn(F)) return false;<br>
>    if (&F == AsanCtorFunction) return false;<br>
>    DEBUG(dbgs() << "ASAN instrumenting:\n" << F << "\n");<br>
> +  initializeCallbacks(*F.getParent());<br>
<br>
</div>It would probably be worthwhile to add an early exit for empty functions here.<br>
<br>
You could also (I think) early exit for any function with the readnone<br>
attribute which has no alloca instructions in its first BB.<br></blockquote><div><br></div><div>Yea, maybe. </div><div>That's why I liked initializing this stuff in doInitialization -- it didn't need all these optimizations :)  </div>
<div>--kcc </div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Of course, it's doubtful any of this will have a terribly significant<br>
impact on compile time.<br>
</blockquote></div><br></div>