[LLVMdev] Different results using -emit-llvm and llc together than just using -S?

Duncan Sands baldrick at free.fr
Wed Mar 13 02:33:14 PDT 2013


Hi Ryan,

On 13/03/13 01:13, Ryan Taylor wrote:
> Why would the generated assembly results for a piece of code be different if I
> did this:
>
> clang -S -emit-llvm sample.c -o sample.ll
> llc sample.ll -o sample.s
>
> then if I did this:
>
> clang -S sample.c -o sample.s

because clang passes all kinds of options to llc that are not the llc defaults.
For example, by default llc targets your local processor while I don't think
clang does.

Ciao, Duncan.




More information about the llvm-dev mailing list