发明名称 Conditional branch instruction compaction for regional code size reduction
摘要 In an approach for decreasing an execution time of a computer code, one or more processors receive a computer code and identify a frequently executed region of the computer code. One or more processors identify a long-form conditional branch in the frequently executed region of the computer code that is infrequently taken. One or more processors generate a long-form unconditional branch with a target that is a target of the long-form conditional branch. One or more processors modify the long-form conditional branch to be a short-form conditional branch. One or more processors insert the long-form unconditional branch in the computer code within a branch distance of the short-form conditional branch. One or more processors modify a target of the short-form conditional branch to be a location of the long-form unconditional branch in the computer code.
申请公布号 US9298436(B2) 申请公布日期 2016.03.29
申请号 US201414314065 申请日期 2014.06.25
申请人 International Business Machines Corporation 发明人 Doyle Patrick R.;Sundaresan Vijay
分类号 G06F9/44;G06F9/45;G06F11/34;G06F9/30 主分类号 G06F9/44
代理机构 代理人 Gooshaw Isaac J.
主权项 1. A method for decreasing an execution time of a computer code, the method comprising: receiving, by one or more processors, a computer code; determining, by one or more processors, whether a first executed region of the computer code is executed frequently; responsive to a determination that the first executed region is executed frequently, determining, by one or more processors, whether a long-form conditional branch in the first executed region of the computer code is infrequently taken; responsive to a determination that the long-form conditional branch is infrequently taken: generating, by one or more processors, a long-form unconditional branch with a target that is a target of the long-form conditional branch;modifying, by one or more processors, the long-form conditional branch to be a short-form conditional branch;inserting, by one or more processors, the long-form unconditional branch in the computer code within a branch distance of the short-form conditional branch; andmodifying, by one or more processors, a target of the short-form conditional branch to be a location of the long-form unconditional branch in the computer code.
地址 Armonk NY US