[LLVMdev] A simple case about SDiv

Zhou Sheng zhousheng00 at gmail.com
Thu Sep 4 09:08:23 PDT 2008


Hi Duncan,

Thanks for your help.

But seems "opt -std-compile-opts" can't do this simplication :(

Any ideas?

Sheng.

2008/9/4 Duncan Sands <baldrick at free.fr>

> > I tried several passes, like -instcombine, -simplifycfg, -gcse -globaldce
> > -globalopt -adce , but all failed to do this transform.
>
> Try "opt -std-compile-opts -debug-pass=Arguments"
> If that does the simplification, then try bisecting
> the set of passes it ran (printed thanks to -debug-pass)
> to find out which combination did it.
>
> Ciao,
>
> Duncan.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080905/24bb3f6b/attachment.html>


More information about the llvm-dev mailing list