<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>
<div class="im"><br>
> The safety is checked by previous code of scalarrepl (function<br>
> isSafeUseOfAllocation),  the instruction "I" can be only load, store,<br>
> bitcast or getelementptr, so, here it is save to delete if it only used by<br>
> debug info.<br>
<br>
</div>I see, thanks for the explanation.  In that case I think it would be better<br>
to explicitly check for the Store case.  With your change loads with no uses<br>
are no longer removed for example.</blockquote><div><br>You are right. Done.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>

<br>
Ciao,<br>
<font color="#888888"><br>
Duncan.<br>
</font></blockquote></div><br>