home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,217 of 2,753   
   M Wolfe to All   
   Re: Profile-driven optimization   
   02 Feb 08 16:35:45   
   
   From: news1@oregonw.com   
      
   A compiler may choose to prefer inlining functions along the hot path.   
   If the profile gives hints as to the loop counts, the compiler can   
   choose whether (or not) to vectorize or unroll a loop.   
      
   But even that's only looking at execution frequency profiles.  Profile   
   feedback can include data as well.  For instance, at an indirect   
   function call, the profile can save the function targets called, and   
   then the compiler can choose to inline one or more of the targets   
   (appropriately guarded).  Or, at an integer divide, the profile may   
   save whether the divisor usually has the same value.  If so, the   
   compiler can decide to use the reciprocal multiply method, where it   
   only has to recompute the reciprocal when the value changes.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca