This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: std::pow implementation



Actually, the heuristic is usually something like: If number of calls to function with constant arguments is estimated or actually high (IE function is on some critical performance path): <clone and optimize>

Otherwise, you would waste so much time trying to determine what to
clone, it's absurd.

So this would be only practical with profiling feedback then?

Or static profiling, to determine the number of calls and whatnot.



Richard.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]