Sorry for the unclear comments  -:)<br><br>This method "OnlyUsedByDbgInfoIntrinsics()" is used by pass scalarrepl, and if it returns true, <br>the pass scalarrepl would delete the instructions that only used by dbginfo.<br>
<br>However, we should consider one corner situation:  if the instruction visited has no users, for example, storing some value to memory, it should return false, otherwise, pass scalarrepl would incorrectly delete that store instruction which is dangerous.<br>
<br><br>Sheng.<br><br><div class="gmail_quote">2009/3/18 Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr">baldrick@free.fr</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
> Fix a bug.<br>
> If I->use_empty(), this method should return false.<br>
<br>
why is returning "true" in this case a problem?<br>
"Fix a bug" isn't very descriptive :)<br>
<br>
Ciao,<br>
<font color="#888888"><br>
Duncan.<br>
</font></blockquote></div><br>