<div dir="ltr"><span style="font-size:12.8000001907349px">Hello,</span><div style="font-size:12.8000001907349px">I am iterating over loops using LoopInfo iterator. If a condition satisfies on some loop, I change the loop body and remove it from that particular loop. Also, I remove all incoming edges to the loop header, latch and preHeader. Hence, these will be the unreachable blocks in the function.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">If that condition satisfies, then I start iterating the loops from the beginning skipping the modified loop. So, I need to re-calculate the LoopInfo.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">How to build LoopInfo again with the updated CFG structure?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">If I just call getAnalysis<LoopInfo>() again, the modified loop will still be present in it.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Regards,<div>Sridhar</div></div></div>
</div>