US Patent:
20170083342, Mar 23, 2017
Inventors:
- Armonk NY, US
Jatin Bhartia - Uttar Pradesh, IN
Akash V. Giri - Austin TX, US
Matthias Heizmann - Poughkeepsie NY, US
International Classification:
G06F 9/38
Abstract:
A method comprises identifying a number of branches (N) and a number of iterations (N) in a loop in an instruction stream, generating a number of forward branches until the number of forward branches equals N, generating a non-branch instruction in between the forward branch instruction, recording in a memory, instruction stream generated and a history of each branch, an associated target address of each branch, and whether the branch is a taken branch or a not taken branch, determining whether a loop iterator number (i) is less than N−1, generating a backward branch with a target address which is greater than or equal to the start address and is lesser than the current address responsive to determining that (i) is less than N, and recording in the memory, a branch instruction of the generated backward branch and the associated target address of the backward branch.