<div dir="ltr">Test the new behavior.<div><br></div><div>David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 11, 2015 at 10:10 AM, Rong Xu <span dir="ltr"><<a href="mailto:xur@google.com" target="_blank">xur@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 dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Fri, Sep 11, 2015 at 7:17 AM, Diego Novillo <span dir="ltr"><<a href="mailto:dnovillo@google.com" target="_blank">dnovillo@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">dnovillo added a comment.<br>
<br>
With David's suggestions and a test case, this LGTM.<br></blockquote><div><br></div></span><div>Hi Diego,</div><div> </div><div>Thanks for the review. One question: Is the test case a regression test to test the new comdat group is generated, or a test case that reproduces current behavior of seg-fault?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div>-Rong</div></font></span><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
================<br>
Comment at: InstrProfiling.cpp:199<br>
@@ -198,4 +198,3 @@<br>
<span><br>
-  // Move the name variable to the right section. Make sure it is placed in the<br>
-  // same comdat as its associated function. Otherwise, we may get multiple<br>
-  // counters for the same function in certain cases.<br>
+  // Move the name variable to the right section. Make them in a COMDAT group<br>
+  // if the associated function is a COMDAT. This will make sure that<br>
</span>----------------<br>
s/Make/Place/<br>
<br>
<br>
<a href="http://reviews.llvm.org/D12248" rel="noreferrer" target="_blank">http://reviews.llvm.org/D12248</a><br>
<br>
<br>
<br>
</blockquote></span></div><br></div></div>
</blockquote></div><br></div>