[LLVMdev] How will get unoptimized LLVM assembly

Tanya Lattner tonic at nondot.org
Wed Jul 20 18:59:26 PDT 2005


> I am Zahurul Islam. I have found LLVM always generate optimize byte code,
> but I want to stop this. Actually, I want unoptimized  LLVM assembly code
> from C code.

>From the FAQ:
http://llvm.cs.uiuc.edu/docs/FAQ.html#cfe

Passing "-Wa,-disable-opt -Wl,-disable-opt" will disable *all* cleanup and 
optimizations done at the llvm level, leaving you with the truly horrible 
code that you desire.

-Tanya




More information about the llvm-dev mailing list