<div dir="ltr">Mind using phabricator? Makes the review much faster.<div><br></div><div>I'd rather someone more familiar with exception handling in LLVM review this. I worry about it mostly because there were explicit tests for the duplication that you've had to remove. While in the abstract your description makes perfect sense and I have no idea why those were there, I also don't know the EH side of LLVM very well at all. Bill is really the perfect reviewer here I suspect. =]</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 2:27 PM, Mark Seaborn <span dir="ltr"><<a href="mailto:mseaborn@chromium.org" target="_blank">mseaborn@chromium.org</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><div class="h5">On 24 November 2013 12:35, Mark Seaborn <span dir="ltr"><<a href="mailto:mseaborn@chromium.org" target="_blank">mseaborn@chromium.org</a>></span> wrote:<br>
</div></div><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Fix inlining to not produce duplicate landingpad clauses<br>

<br>Before this change, inlining one "invoke" into outer "invoke" call<br>site can lead to the outer landingpad's catch/filter clauses being<br>
copied multiple times into the resulting landingpad.  This happens:<br><br> * when the inlined function contains multiple "resume" instructions,<br>   because forwardResume() copies the clauses but is called multiple<br>


   times;<br><br> * when the inlined function contains a "resume" and a "call", because<br>   HandleCallsInBlockInlinedThroughInvoke() copies the clauses but is<br>   redundant with forwardResume().<br>


<br>Fix this by deduplicating the code.<br><br>This problem doesn't lead to any incorrect execution; it's only<br>untidy.<br><br>This change will make fixing PR17872 a little easier.<br></div></blockquote><div><br>

</div></div></div><div>Ping.  Can someone review this change, please?  I am not really sure if this change is small enough to be committed without a pre-commit review (following <a href="http://llvm.org/docs/DeveloperPolicy.html#code-reviews" target="_blank">http://llvm.org/docs/DeveloperPolicy.html#code-reviews</a>), but I'd certainly prefer to have someone review it before committing.</div>

<div><br></div><div>Cheers,</div><div>Mark</div><div><br></div></div></div></div>
</blockquote></div><br></div>