<div dir="ltr"><p>Hi Duncan,</p><p>Thanks for your help.<br></p><p>But seems "opt -std-compile-opts" can't do this simplication :(</p><p>Any ideas?</p><p></p><p>Sheng.</p><br><div class="gmail_quote">2008/9/4 Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr">baldrick@free.fr</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">> I tried several passes, like -instcombine, -simplifycfg, -gcse -globaldce<br>
> -globalopt -adce , but all failed to do this transform.<br>
<br>
</div>Try "opt -std-compile-opts -debug-pass=Arguments"<br>
If that does the simplification, then try bisecting<br>
the set of passes it ran (printed thanks to -debug-pass)<br>
to find out which combination did it.<br>
<br>
Ciao,<br>
<font color="#888888"><br>
Duncan.<br>
</font></blockquote></div><br></div>