Invention Grant
- Patent Title: Apparatus and method for controlling branch prediction
-
Application No.: US15939827Application Date: 2018-03-29
-
Publication No.: US10649782B2Publication Date: 2020-05-12
- Inventor: Luca Nassi , Houdhaifa Bouzguarrou , Guillaume Bolbenes
- Applicant: Arm Limited
- Applicant Address: GB Cambridge
- Assignee: Arm Limited
- Current Assignee: Arm Limited
- Current Assignee Address: GB Cambridge
- Agency: Nixon & Vanderhye P.C.
- Main IPC: G06F9/32
- IPC: G06F9/32 ; G06F9/35 ; G06F21/52 ; G06F9/38 ; G06F9/30 ; G06F9/46

Abstract:
An apparatus and method are provided for controlling branch prediction. The apparatus has processing circuitry for executing instructions, and branch prediction circuitry that comprises a plurality of branch prediction mechanisms used to predict target addresses for branch instructions to be executed by the processing circuitry. The branch instructions comprise a plurality of branch types, where one branch type is a return instruction. The branch prediction mechanisms include a return prediction mechanism used by default to predict a target address when a return instruction is detected by the branch prediction circuitry. However, the branch prediction circuitry is responsive to a trigger condition indicative of misprediction of the target address when using the return prediction mechanism to predict the target address for a given return instruction, to switch to using an alternative branch prediction mechanism for predicting the target address for the given return instruction. This has been found to improve performance in certain situations.
Public/Granted literature
- US20190303161A1 APPARATUS AND METHOD FOR CONTROLLING BRANCH PREDICTION Public/Granted day:2019-10-03
Information query