<div dir="ltr">Ping!<div><br></div><div>This is only 200 lines because of code moving, but is not hard to understand, nor does it need Chandler to review. I only cc'd him because I think this fixes/obviates the rest of his comments on the previous isPotentiallyReachable patch.</div>

<div><br></div><div>Nick</div><div class="gmail_extra"><br><div class="gmail_quote">On 31 July 2013 00:14, Nick Lewycky <span dir="ltr"><<a href="mailto:nlewycky@google.com" target="_blank">nlewycky@google.com</a>></span> wrote:<br>

<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">This patch fixes a missed-opportunity in isPotentiallyReachable where the From and To instructions are in the same non-entry block, and LoopInfo is not provided. The addition to the testcase demonstrates.<br>


<br>
This also moves some code around, providing both Instruction* and BasicBlock* overloads, and making the former forward to the block-only implementation.<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D1247" target="_blank">http://llvm-reviews.chandlerc.com/D1247</a><br>
<br>
Files:<br>
  lib/Analysis/CFG.cpp<br>
  include/llvm/Analysis/CFG.h<br>
  unittests/Analysis/CFGTest.cpp<br>
</blockquote></div><br></div></div>