<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Dec 12, 2011, at 10:44 AM, neda 8664 wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p class="MsoNormal">I am changing structure of loops,</p></blockquote><div>LoopPass manager is walking loop nest while invoking each loop pass on a given loop. If you update structure of loops then you need to let loop pass manager know. </div><blockquote type="cite"><p class="MsoNormal"> I used std::vector<>
but i get same error, I can’t use FunctionPass <span style=""> </span>:(<span dir="RTL" style="font-family:"Arial","sans-serif"" lang="FA"></span></p>

</blockquote></div>There must be a good reason. <div><br></div><div>In any case, see LPPassManager (it is a FunctionPass :), which provides simple hooks to record deletion/creation of loops. If that does not work for you, you'll have to update LPPassManager to meet your needs.<div><br></div><div>-</div><div>Devang</div></div></body></html>