Invention Grant
- Patent Title: Pattern based branch prediction
-
Application No.: US14789065Application Date: 2015-07-01
-
Publication No.: US09934041B2Publication Date: 2018-04-03
- Inventor: Narasimha R. Adiga , Jatin Bhartia , Akash V. Giri , Matthias Heizmann
- Applicant: International Business Machines Corporation
- Applicant Address: US NY Armonk
- Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
- Current Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
- Current Assignee Address: US NY Armonk
- Agency: Cantor Colburn LLP
- Agent William A. Kinnaman, Jr.
- Main IPC: G06F9/38
- IPC: G06F9/38 ; G06F9/30

Abstract:
A method comprises identifying a number of branches (Nb) and a number of iterations (Ni) in a loop in an instruction stream, generating a number of forward branches until the number of forward branches equals Nb, 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 Ni−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 Ni, and recording in the memory, a branch instruction of the generated backward branch and the associated target address of the backward branch.
Public/Granted literature
- US20170003970A1 PATTERN BASED BRANCH PREDICTION Public/Granted day:2017-01-05
Information query