[LLVMdev] Turning Off Backend Passes

Evan Cheng evan.cheng at apple.com
Tue Sep 1 12:27:35 PDT 2009


On Sep 1, 2009, at 12:07 PM, David Greene wrote:

> So LLVMTargetMachine.cpp adds lots of transformation passes in the
> various addPasses* routines.  We'd prefer not to run all of these
> things (LSR, for example).  We've sort of dealt with it for now but
> we'd really like to be able to turn some of these things off in a
> convenient way.
>
> We could just comment stuff out but we'd like to remain as close to
> upstream as possible.  Can anyone think of a good way to provide the
> needed flexibility here?  Maybe a flags that says "just do the bare
> minimum to generate code?"  Would anyone object to that?

If you have a custom compiler, why not have llvm-gcc (or whatever  
frontend you use) create its own pass manager? That way, it can  
control the exactly what passes it wants.

Evan

>
>                            -Dave
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list