[LLVMdev] comparing -O5 to -std-compile-opts
Ryan M. Lefever
lefever at crhc.uiuc.edu
Sat Mar 31 19:46:22 PDT 2007
Let's say I have 2 bytecode files, X.bc and Y.bc that I want to combine
into Z.bc. Which of the following command sequences will produce more
optimized code?
Sequence 1:
llvm-link -o tmp.bc X.bc Y.bc
opt -std-compile-opts -o Z.bc tmp.bc
Sequence 2:
llvm-ld -O5 -o Z.bc X.bc Y.bc
Without looking at details it seems like sequence 2 should produce the
most optimized code. As a follow up, where does -std-compile-opts fall
within -O1 to -O5?
Thanks,
Ryan
More information about the llvm-dev
mailing list