首页> 外国专利> 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.
机译:提供一种仅根据呼叫图中的配置文件信息即可全局内联具有高成本效益的被呼叫者,而无需查看所有呼叫图边缘的机制。该机制提供了一种内联技术。计算可从要编译的呼叫者处获得的被呼叫者的内联成本效益比。计算内联成本效益比包括使用对被呼叫者的呼叫频率与总呼叫频率之比作为有效性,以及将被呼叫者的代码大小与可插入代码的总大小之比作为成本。通过将内联成本效益比与预定阈值进行比较来确定是否内联被叫方。响应于确定要内联被调用者方法,将被调用者内联到源代码中。

著录项

相似文献

  • 专利
  • 外文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号