<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Hi,</div>
<div> </div>
<div>I’m trying to clone few basic blocks based on some information and keeping it closer to its predecessor.</div>
<div>For SSA update used SSAUpdater, but I’m not much confident on it.</div>
<div> </div>
<div>i.e.</div>
<div><i>A:</i></div>
<div><i>   Branch Cond1 L1, L2</i></div>
<div><i>B:</i></div>
<div><i>   Branch Cond2 L1, L2</i></div>
<div><i>C</i><i>:</i></div>
<div><i>   Branch Cond</i><i>3</i><i> L1, L2</i></div>
<div> </div>
<div><i>L1:</i></div>
<div><i>   ...</i></div>
<div><i>L2:</i></div>
<div><i>   ...</i></div>
<div> </div>
<div>Will be translated to:</div>
<div> </div>
<div><i>A:</i></div>
<div><i>   Branch Cond1 L1.CloneA, L2.CLoneA</i></div>
<div><i>L1.CloneA:</i></div>
<div><i>   ...</i></div>
<div><i>L2.CLoneA:</i></div>
<div><i>   ...</i></div>
<div><i>B:</i></div>
<div><i>   Branch Cond2 L1.CloneB, L2.CLoneB</i></div>
<div><i>L1.CloneB:</i></div>
<div><i>   ...</i></div>
<div><i>L2.CLoneB:</i></div>
<div><i>  ...</i></div>
<div><i>C:</i></div>
<div><i>   Branch Cond3 L1, L2</i></div>
<div><i>L1:</i></div>
<div><i>   ...</i></div>
<div><i>L2:</i></div>
<div><i>   ...</i></div>
<div> </div>
<div>After generating each clone updating SSA using SSAUpdater but I’m not very much confident as using it first time.</div>
<div>I’m worried about this incremental SSA update, is SSAUpdater safe for purpose like this ?</div>
<div> </div>
<div>Probably I like to generate all the clones and update SSA in the last. </div>
<div>For that looking for a way where I can invalidate the SSA and later recreate it(Just like analysis invalidation)</div>
<div>I’m not aware of any way in LLVM where we can invalidate SSA and recreate it.</div>
<div> </div>
<div>Any help on clarifying my doubts will be very useful.</div>
<div> </div>
<div>Thanks,</div>
<div>Ashutosh</div>
<div> </div>
</span></font>
</body>
</html>