[LLVMdev] A simple case about SDiv

Duncan Sands baldrick at free.fr
Fri Sep 5 01:22:35 PDT 2008


> Any ideas?

Most likely it is the gcc folder doing it.
This gcc optimization is run in llvm-gcc
because it's basically impossible to turn
it off!  You can check by passing
-mllvm -disable-llvm-optzns
to llvm-gcc along with -O2.  If the
optimization still occurs then it was
gcc that did it.

Ciao,

Duncan.



More information about the llvm-dev mailing list