[LLVMdev] How to use LLVM optimizations with clang
Abdul Wahid Memon
engrwahidmemon at gmail.com
Tue Jun 12 03:48:34 PDT 2012
Hi
Yes. But how exactly code generation (optimized one) be done without
clang. Is it possible that we can specify those optimization
(individual ones instead of standard ones like -O3) some how when
generating code as is done by clang or llc?
Regards
Shahzad
On Tue, Jun 12, 2012 at 12:42 PM, Duncan Sands <baldrick at free.fr> wrote:
> Hi, the reason is that lli does optimized code generation by default, while
> clang does unoptimized codegen by default. Use this
> clang -O2 comb.ll
> instead.
>
> Ciao, Duncan.
More information about the llvm-dev
mailing list