发明名称 Eliminating redundant function calls
摘要 A computer-implemented method for removing redundant function calls in a computer program includes identifying a first set of equivalent function calls appearing in the computer program. For each of the equivalent function calls, the method identifies whether the function call is partially available or partially anticipable. When a function call is identified as being partially anticipable, a result of the function call is stored in a temporary variable. When a function call is identified as being partially available, the function call is removed and replaced with use of the temporary variable.
申请公布号 US8966463(B2) 申请公布日期 2015.02.24
申请号 US201113306055 申请日期 2011.11.29
申请人 Microsoft Technology Licensing, LLC 发明人 Sathyanathan Patrick W.;Tzen Ten
分类号 G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项 1. A computer-implemented method for removing redundant function calls in a computer program, comprising: identifying a first set of equivalent function calls appearing in the computer program; for each of the equivalent function calls, identifying whether the function call is partially available or partially anticipable, wherein a function call is identified as partially available if the function call was computed previously along at least one path to the function call, wherein a function call is identified as partially anticipable if the function call is re-computed later along at least one path away from the function call; when a function call is identified as being partially anticipable, storing a result of the function call in a temporary variable; when a function call is identified as being partially available, removing the function call and replacing the function call with use of the temporary variable; and wherein the method is performed by at least one processor.
地址 Redmond WA US