<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class="">Can some one explain the intended behaviour of following loop in void MemorySSAUpdater::insertDef(MemoryDef *MD, bool RenameUses) function.</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""><font face="Menlo" class=""> while (!FixupList.empty()) {</font></div>
<div class=""><font face="Menlo" class=""> unsigned StartingPHISize = InsertedPHIs.size();</font></div>
<div class=""><font face="Menlo" class=""> fixupDefs(FixupList);</font></div>
<div class=""><font face="Menlo" class=""> FixupList.clear();</font></div>
<div class=""><font face="Menlo" class=""> // Put any new phis on the fixup list, and process them</font></div>
<div class=""><font face="Menlo" class=""> FixupList.append(InsertedPHIs.end() - StartingPHISize, InsertedPHIs.end());</font></div>
<div class=""><font face="Menlo" class=""> }</font></div>
<div class=""><br class="">
</div>
<div class="">With the latest code on trunk compilation of perlbench SPEC CPU 2017 INT benchmark with “-O3 -inline-threshold=1000 and -enable-gvn-hoist” options is looping infinitely on the above loop.</div>
<div class=""><br class="">
</div>
<div class="">Above loop never terminates unless elements from InsertedPHIs are removed as and when they are processed. But, I don’t see any call to remove contents, delete or clear, from InsertedPHIs. </div>
<div class=""><br class="">
</div>
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">
With regards<br class="">
Bhargav Reddy Godala<br class="">
Software Engineer 2<br class="">
Bangalore, India<br class="">
E-mail: <a href="mailto:Bhargav-reddy.Godala@amd.com" class="">Bhargav-reddy.Godala@amd.com</a> Ext 30678</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">
<br class="">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="">
</div>
</body>
</html>