<div dir="ltr">On Thu, Sep 26, 2013 at 2:35 PM, Justin Bogner <span dir="ltr"><<a href="mailto:mail@justinbogner.com" target="_blank">mail@justinbogner.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<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">When creating new PHI instructions in SLPVectorizer and LoopVectorize,<br>

we're setting the insertion point using getFirstInsertionPt. This does<br>
the wrong thing when landingpads are present, since getFirstInsertionPt<br>
skips past these.<br>
<br>
The attached patch uses getFirstNonPHI instead, and adds a testcase that<br>
crashes without the patch and passes with. Can someone please commit?<br></blockquote><div><br></div><div>The patch is missing a testcase for the LoopVectorize change.</div><div><br></div><div>(On a side note, you should request commit access; see <a href="http://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access">http://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access</a> .)</div>
<div><br></div><div>-Eli</div><div><br></div></div></div></div>