search for: _penalty_

Displaying 4 results from an estimated 4 matches for "_penalty_".

2010 Jun 04
2
[LLVMdev] Is there a "callback optimization"?
...when to perform specialization. If the call was not inlined > the function is probably big. Getting this wrong will generate *a lot* > of code for very small (if not negative) speed gain. Could you elaborate why just having (lots of) more code in the final executable will incur a performance _penalty_? I was thinking of something similiar, but for type-specializations of functions of a dynamicly-typed language, so that the frontend creates more than one function for each function in the sourcecode. > 2) Sharing of specializations from different call sites that have the > same constants....
2010 May 18
1
BIC() in "stats" {was [R-sig-ME] how to extract the BIC value}
...Arguments: >> object: a fitted model object, for which there exists a ?logLik? >> method to extract the corresponding log-likelihood, or an >> object inheriting from class ?logLik?. >> ...: optionally more fitted model objects. >> k: numeric, the _penalty_ per parameter to be used; the default >> ?k = 2? is the classical AIC. MM> you may note that the original authors of AIC where always MM> allowing the AIC() function (and its methods) to compute the BIC, MM> simply by using 'k = log(n)' where of course n mus...
2010 Jun 04
0
[LLVMdev] Is there a "callback optimization"?
It should be relatively simple to write a pass that turns each call that has constant argument(s) into a call to specialized version of the callee. To devirtualize C++ calls it needs to be smarter, since the argument is not a constant, but a pointer to a struct that points to a constant. However, the trick here is 1) Knowing when to perform specialization. If the call was not inlined the function
2010 Jun 04
3
[LLVMdev] Is there a "callback optimization"?
When I used -std-compile-opts -disable-inlining, my transform didn't happen. I think in your test, the inline of UseCallback into foo automatically made the function pointer into a constant, which turned it into a direct call that was then inlined. If UseCallback is too big to inline and uses the callback parameter inside a loop, this transform is potentially valuable, particularly if