[LLVMdev] Turning Off Backend Passes

Evan Cheng evan.cheng at apple.com
Tue Sep 1 13:14:04 PDT 2009

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

> On Tuesday 01 September 2009 14:27, Evan Cheng wrote:
>> 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.
> Because addPasses* do a lot of useful stuff.  There's already a "Fast"
> flag but it's overloaded.  What if we replaced it with a bitvector of
> flags?

Fast has been replaced with optimization level. I am not opposed to  
enhancing it but I'd prefer to keep it simple.

addPasses* just add a bunch of passes to PM. It's really not a lot to  
replicate if want your own custom llc / llvm-gcc.


>                                -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