[LLVMdev] strict aliasing and LLVM

Eric Christopher echristo at apple.com
Sat Oct 30 16:03:16 PDT 2010


On Oct 30, 2010, at 3:26 PM, Xinliang David Li wrote:

> I thought llc include all standard optimization passes (equivalent to opt -std-compile-opts + machine code generation) --- it seems more natural (to me) to have  a single optimization driver that takes llvm bit code as the input.  

And that is opt, it handles all machine independent optimizations (though taking advantage of target data if it knows about it). llc handles target dependent code generation as well as some optimization passes that run on machine instrs like the machine licm that Nick was talking about.

-eric



More information about the llvm-dev mailing list