[LLVMdev] A simple case about SDiv

Duncan Sands baldrick at free.fr
Thu Sep 4 08:56:16 PDT 2008


> 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.



More information about the llvm-dev mailing list