Invention Grant
- Patent Title: Program code optimization for reducing branch mispredictions
-
Application No.: US15607883Application Date: 2017-05-30
-
Publication No.: US10235173B2Publication Date: 2019-03-19
- Inventor: Anupama Rajesh Rasale
- Applicant: Advanced Micro Devices, Inc.
- Applicant Address: US CA Santa Clara
- Assignee: Advanced Micro Devices, Inc.
- Current Assignee: Advanced Micro Devices, Inc.
- Current Assignee Address: US CA Santa Clara
- Agency: Meyertons Hood Kivlin Kowert and Goetzel PC
- Agent Rory D. Rankin
- Main IPC: G06F8/41
- IPC: G06F8/41 ; G06F9/30 ; G06F9/38

Abstract:
Systems, apparatuses, and methods for implementing an IF2FOR transformation are disclosed. In one embodiment, a first group of instructions include an IF-statement and one or more control dependent instructions. The first group of instructions are transformed into a second group of instructions if the first group of instructions meet one or more criteria. In one embodiment, the criteria includes the (1) IF-statement being part of a loop and (2) the control dependent instructions not having any inter-loop iteration dependency. The second group of instructions are executable to (1) store results of the IF-statement condition for a first number of iterations and (2) execute the control dependent instructions for a second number of iterations when the IF-statement condition evaluates to true.
Public/Granted literature
- US20180349140A1 PROGRAM CODE OPTIMIZATION FOR REDUCING BRANCH MISPREDICTIONS Public/Granted day:2018-12-06
Information query