Patent ID: 6931632
Filing Date: 2005-08-16
Classification: G06F

Abstract:
1. A computer-implemented method for instrumentation of an executable computer program that includes a first bundle of instructions followed by a second bundle, the first bundle having a predicated branch-call instruction followed by a call-shadow instruction, wherein the predicated branch-call instruction conditionally transfers control to a target address in response to a state of an associated predicate and returns control to the second bundle, comprising: changing the predicated branch-call instruction to a predicated branch instruction that targets a fifth bundle, wherein the predicate of the predicated branch instruction is the predicate of the predicated branch-call instruction; creating a third bundle and inserting the third bundle after the first bundle, the third bundle including the call-shadow instruction; creating a fourth bundle and inserting the fourth bundle after the third bundle, the fourth bundle including a branch instruction that targets the second bundle; creating the fifth bundle and inserting the fifth bundle after the fourth bundle, the fifth bundle including a branch-call instruction having a target address equal to the target address of the predicated branch-call instruction; and inserting instrumentation instructions in selected ones of the bundles.