[cfe-dev] NormalInlining pass run only at > O1
    Roman Divacky 
    rdivacky at freebsd.org
       
    Tue Mar  8 09:09:04 PST 2011
    
    
  
hi,
there's this code in CompilerInvocation.cpp:
  Opts.Inlining = (Opts.OptimizationLevel > 1) ? CodeGenOptions::NormalInlining
     : CodeGenOptions::OnlyAlwaysInlining;
ie. for all optimization levels below -O2 only the OnlyAlwaysInlining pass
is run. why is it so? it makes more sense to me to run NormalInlining
at -O1 too.
can someone shed some light on this?
thank you, roman
    
    
More information about the cfe-dev
mailing list