[llvm-dev] Is there a way to pass Optimization passes to clang?

David Chisnall via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 2 10:17:35 PST 2015


On 2 Dec 2015, at 17:56, Phil Tomson via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Now my intent is to figure out which optimization pass is causing the problem by trying each one until I hit the same problem as with -O1, but clang itself doesn't seem to allow these commandline options, for example:
> 
> clang -loops -lcssa ....
> 
> 

If you want to pass LLVM arguments to clang, then you must prefix them with -llvm (e.g. -mllvm -loops -mllvm lcssa).

David



More information about the llvm-dev mailing list