摘要 |
A memory stores code including a plurality of functions and a plurality of function calls each calling one of the plurality of functions. A processor calculates, for each of the plurality of functions, a plurality of index values including a first index value indicating an iteration status of a loop in the function and a second index value indicating the code size of the function. The processor calculates, for each of the plurality of function calls, an evaluation value based on the plurality of index values that are calculated for the function called by the function call. The processor selects one or more of the plurality of function calls, based on the evaluation value, and inlines the selected function calls. |
主权项 |
1. An information processing apparatus comprising:
a memory configured to store code including a plurality of functions and a plurality of function calls, each of the plurality of function calls calling one of the plurality of functions; and a processor configured to perform a procedure including: calculating, for each of the plurality of functions included in the code, a plurality of index values including a first index value and a second index value, the first index value indicating an iteration status of a loop in the function, the second index value indicating a code size of the function; calculating, for each of the plurality of function calls included in the code, an evaluation value based on the plurality of index values that are calculated for the function called by the function call; and selecting one or more of the plurality of function calls, based on the evaluation value, and inlining the selected one or more function calls. |