-
1.
公开(公告)号:US20230367596A1
公开(公告)日:2023-11-16
申请号:US18314655
申请日:2023-05-09
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Bing Han , Yongyu Chen , Nan Li , Taixu Tian
IPC: G06F9/30
CPC classification number: G06F9/30058
Abstract: An instruction prediction method and apparatus, a system, and a computer-readable storage medium relate to the field of computer technologies. The method includes: a processor obtains a plurality of to-be-executed first IBs, where any first IB includes at least one instruction to be sequentially executed, and the at least one instruction includes one branch instruction; searches, based on branch instructions included in the plurality of first IBs, at least one candidate execution path for a candidate execution path corresponding to the plurality of first IBs, where any candidate execution path indicates a jump relationship between a plurality of second IBs, and a jump relationship indicated by the candidate execution path corresponding to the plurality of first IBs includes a jump relationship between the plurality of first IBs; and predicts, based on the jump relationship between the first IBs, a next instruction corresponding to a branch instruction in each first D3.