<div dir="ltr"><br clear="all"><div>I have used SplitBlockAndInsertIfThen() to split a basic block, inserted a few instructions in the Then block and Tail block. For a few subjects I am receiving the following error: "PHI node entries do not match predecessors!". Looking into the source(<a href="http://llvm.org/doxygen/Verifier_8cpp_source.html">http://llvm.org/doxygen/Verifier_8cpp_source.html</a>), it says:</div><div><br></div><div><div>// Check to make sure that the predecessors and PHI node entries are</div><div> 2243 // matched up.</div><div> 2244 Assert(Values[i].first == Preds[i],</div><div> 2245 "PHI node entries do not match predecessors!", PN,</div><div> 2246 Values[i].first, Preds[i]);</div></div><div><br></div><div>Can anybody throw in any idea how it can relate to splitting BB and inserting new instructions?</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span><div><div dir="ltr"><p>Thanks & Regards,</p>
<div>Dipanjan</div></div></div></span></div></div>
</div>