首页>
外国专利>
Globally Inline a Callee with High Cost-Effectiveness on the Basis Only of Profile Information in a Call Graph
Globally Inline a Callee with High Cost-Effectiveness on the Basis Only of Profile Information in a Call Graph
展开▼
机译:仅基于调用图中的配置文件信息,就可以使具有高成本效益的被调用者全局内联
展开▼
页面导航
摘要
著录项
相似文献
摘要
A mechanism is provided to globally inline a callee with high cost-effectiveness on the basis only of profile information in a call graph, without looking through all call-graph edges. The mechanism provides a technique for inlining. An inline cost-effectiveness ratio for the callee reachable from a caller to be compiled is calculated. Calculating the inline cost-effectiveness ration includes using a ratio of a frequency of calls to the callee to a total of call frequencies as effectiveness and using a ratio of a code size of the callee to a total size of inlinable code as cost. A determination is made as to whether to inline the callee by comparing the inline cost-effectiveness ratio with a predetermined threshold. The callee is inlined into a source code in response to determining that the callee method is to be inlined.
展开▼