[cfe-commits] [PATCH] Allow PCHReader to be used without having a pre-initialized Preprocessor

Chris Lattner clattner at apple.com
Thu Jun 18 15:29:56 PDT 2009


On Jun 18, 2009, at 12:16 PM, Sebastian Redl wrote:

> Chris Lattner wrote:
>> Even at -O4 we want to do inlining and other optimization at compile
>> time.
> Why?

Among other things, early optimizations shrink code size.  As a silly  
example, in llvm, "isa<foo>(p)" usually inlines down to one load and a  
compare.  You can't do that if the templates for isa<foo> aren't  
instantiated.

-Chris



More information about the cfe-commits mailing list