[LLVMdev] Optimization application by llvm-gcc, opt

Raghu Prabhakar raghu at cs.ucla.edu
Mon Dec 12 20:40:28 PST 2011


Hi all,

I wanted to clarify something about the application of optimizations by llvm-gcc, opt and llc.

Will the following two sequences generate the same optimized bitcode?
   a) $ llvm-gcc -O3 -c -emit-llvm foo.c  -o foo.bc
   b) $ llvm-gcc -O0 -c -emit-llvm foo.c -o foo.bc
      $ opt -O3 foo.bc



   



More information about the llvm-dev mailing list