I think the SSAupdater might do the trick. The issue with replaceUses is that it would work great for the current block but what about the PHIs in continuing blocks, think that would be a problem. Thanks.<br><br><div class="gmail_quote">
On Thu, Mar 8, 2012 at 1:28 PM, Marc de Kruijf <span dir="ltr"><<a href="mailto:dekruijf@cs.wisc.edu">dekruijf@cs.wisc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It sounds like Transforms/Utils/SSAUpdater may be what you are looking for.  <br>A good example of how to use it -- one that sounds very similar to what you're doing -- can be found in Transforms/Scalar/LoopRotation.cpp<br>


<br><div class="gmail_quote"><div><div class="h5">On Wed, Mar 7, 2012 at 2:03 PM, Ryan Taylor <span dir="ltr"><<a href="mailto:ryta1203@gmail.com" target="_blank">ryta1203@gmail.com</a>></span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5">

I am splitting a one BB loop into two BB. <br><br>Basically, the one loop BB has 3 incoming values, one form back edge two from other edges. I want to extract the PHIs from the other two edges out into it's own BB and delete that from the loop, then redirect the backedge to the loopbody (non extracted portion) and create a new PHI coming from the extracted BB and the backedge.<br>



<br>I can do this; however, the PHIs following in all the other BBs are not getting updated, neither are the statements in the loopbody.<br><br>What is the easieset way to propagate these changes downward?<br>
<br></div></div><div class="im">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></div></blockquote></div><br>
</blockquote></div><br>