发明名称 Method for Controlling Inlining in a Code Generator
摘要 The various aspects leverage the novel observation that the number of call sites in code is directly correlated with the code's compile time and provide methods implemented by a compiler operating on a computing device (e.g., a smartphone) for performing inline throttling based on a projected number of call sites in the code that would exist after performing inline expansion. The various aspects enable the compiler to improve the performance of the generated code by aggressive inlining while carefully managing increases in compile time, thereby decreasing the power required to compile the code while increasing performance of the computing device. Thus, by inlining enough call sites to reduce the costs of handling calls while accounting for the costs of inlining, the various aspects provide for an effective balance of short compile times and effective code performance.
申请公布号 US2015046912(A1) 申请公布日期 2015.02.12
申请号 US201314014571 申请日期 2013.08.30
申请人 QUALCOMM Incorporated 发明人 VICK Christopher A.;Valencia Andres
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项 1. A method of throttling inline optimization of code by a compiler operating on a computing device, comprising: selecting a call site detected during a scan of the code; determining a number of nested function calls in a called function of the call site; determining whether the call site is eligible for inlining based at least on the number of nested function calls in the called function and a call-site counter; and inlining the call site in response to determining that the call site is eligible for inlining.
地址 San Diego CA US