# US 2026/0093492 A1 · Performing criticality-based instruction scheduling in processor devices

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0093492 A1
- Document ID: US20260093492A1
- Status: Published application
- Kind: A1
- Application number: 18/901,392
- Filed: 2024-09-30
- Published: 2026-04-02
- Earliest claimed: 2024-09-30
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Suryanarayana Murthy Durbhakula
- Web page: https://patentgrep.com/patent/US20260093492A1

## CPC

- G06F 9/30185: {according to one or more bits in the instruction, e.g. prefix, sub-opcode}
- G06F 8/443: {Optimisation}
- G06F 8/445: {Exploiting fine grain parallelism, i.e. parallelism at instruction level (run-time instruction scheduling G06F9/3836)}
- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Performing criticality-based instruction scheduling in processor devices is disclosed herein. In some aspects, a processor device executes a compiler that generates an initial schedule comprising a plurality of instructions. The compiler constructs a directed graph based on the initial schedule, with each directed graph node corresponding to an instruction of the plurality of instructions, and each directed edge of the directed graph indicating an instruction dependency. The compiler calculates criticality metrics for each directed graph node, and generates a max heap data structure based on the criticality metrics. The compiler determines an optimized schedule comprising the plurality of instructions by iteratively identifying a root node of the max heap data structure as a node having a highest criticality metric, scheduling an instruction corresponding to the root node, and removing the root node from the max heap data structure. The processor device then executes the instructions according to the optimized schedule.

## Claims

### Claim 1

A processor device, configured to:
generate, by executing a compiler, an initial schedule comprising a plurality of instructions;
construct, by executing the compiler, a directed graph based on the initial schedule, wherein:
each node of a first plurality of nodes of the directed graph corresponds to an instruction of the plurality of instructions; and
each directed edge of one or more directed edges of the directed graph indicates an instruction dependency;
calculate, by executing the compiler, a plurality of criticality metrics corresponding to the first plurality of nodes;
generate, by executing the compiler, a max heap data structure comprising a second plurality of nodes based on the plurality of criticality metrics;
determine, by executing the compiler, an optimized schedule comprising the plurality of instructions by being configured to iteratively:
identify a root node of the max heap data structure as a node of the second plurality of nodes having a highest criticality metric;
schedule an instruction of the plurality of instructions corresponding to the root node; and
remove the root node from the max heap data structure; and
execute the plurality of instructions according to the optimized schedule.

### Claim 2 (depends on 1)

The processor device of claim 1, wherein each criticality metric of the plurality of criticality metrics comprises a sum of instruction latencies of all instructions directly and indirectly dependent on an instruction of the plurality of instructions that corresponds to a node of the first plurality of nodes that corresponds to the criticality metric.

### Claim 3 (depends on 1)

The processor device of claim 1, wherein the processor device is configured to determine the optimized schedule by being further configured to:
determine whether the instruction corresponding to the root node depends on an unscheduled instruction of the plurality of instructions, based on the directed graph; and
responsive to determining that the instruction corresponding to the root node depends on the unscheduled instruction:
schedule the unscheduled instruction prior to scheduling the instruction corresponding to the root node; and
remove a node corresponding to the unscheduled instruction from the max heap data structure.

### Claim 4 (depends on 1)

The processor device of claim 1, wherein:
the processor device is further configured to, prior to scheduling the instruction corresponding to the root node:
determine whether a functional unit corresponding to a type of the instruction corresponding to the root node is available; and
responsive to determining that the functional unit corresponding to the type of the instruction corresponding to the root node is not available:
schedule a next-most-critical instruction for which a corresponding functional unit is available; and
remove a node corresponding to the next-most-critical instruction from the max heap data structure; and
the processor device is configured to schedule the instruction corresponding to the root node responsive to determining that the functional unit corresponding to the type of the instruction corresponding to the root node is available.

### Claim 5 (depends on 1)

The processor device of claim 1, wherein the processor device is further configured to rebalance the max heap data structure.

### Claim 6 (depends on 5)

The processor device of claim 5, wherein the processor device is configured to rebalance the max heap data structure by being configured to:
identify two or more nodes of the max heap data structure as having the same highest criticality metric; and
select a node of the two or more nodes that corresponds to a longest instruction latency as the root node.

### Claim 7 (depends on 1)

The processor device of claim 1, wherein the processor device is configured to determine the optimized schedule by being further configured to reorder the plurality of instructions to perform load latency hiding.

### Claim 8 (depends on 1)

The processor device of claim 1, integrated into a device selected from the group consisting of: a set top box; an entertainment unit; a navigation device; a communications device; a fixed location data unit; a mobile location data unit; a global positioning system (GPS) device; a mobile phone; a cellular phone; a smart phone; a session initiation protocol (SIP) phone; a tablet; a phablet; a server; a computer; a portable computer; a mobile computing device; a wearable computing device; a desktop computer; a personal digital assistant (PDA); a monitor; a computer monitor; a television; a tuner; a radio; a satellite radio; a music player; a digital music player; a portable music player; a digital video player; a video player; a digital video disc (DVD) player; a portable digital video player; an automobile; and a vehicle component.

### Claim 9

A processor device, comprising:
means for generating an initial schedule comprising a plurality of instructions;
means for constructing a directed graph based on the initial schedule, wherein:
each node of a first plurality of nodes of the directed graph corresponds to an instruction of the plurality of instructions; and
each directed edge of one or more directed edges of the directed graph indicates an instruction dependency;
means for calculating a plurality of criticality metrics corresponding to the first plurality of nodes;
means for generating a max heap data structure comprising a second plurality of nodes based on the plurality of criticality metrics;
means for determining an optimized schedule comprising the plurality of instructions by iteratively:
identifying a root node of the max heap data structure as a node of the second plurality of nodes having a highest criticality metric;
scheduling an instruction of the plurality of instructions corresponding to the root node; and
removing the root node from the max heap data structure; and
means for executing the plurality of instructions according to the optimized schedule.

### Claim 10

A method for performing criticality-based instruction scheduling in processor devices, comprising:
generating, by a compiler executing on a processor device, an initial schedule comprising a plurality of instructions;
constructing, by the compiler, a directed graph based on the initial schedule, wherein:
each node of a first plurality of nodes of the directed graph corresponds to an instruction of the plurality of instructions; and
each directed edge of one or more directed edges of the directed graph indicates an instruction dependency;
calculating, by the compiler, a plurality of criticality metrics corresponding to the first plurality of nodes;
generating, by the compiler, a max heap data structure comprising a second plurality of nodes based on the plurality of criticality metrics;
determining, by the compiler, an optimized schedule comprising the plurality of instructions by iteratively:
identifying a root node of the max heap data structure as a node of the second plurality of nodes having a highest criticality metric;
scheduling an instruction of the plurality of instructions corresponding to the root node; and
removing the root node from the max heap data structure; and
executing, by the processor device, the plurality of instructions according to the optimized schedule.

### Claim 11 (depends on 10)

The method of claim 10, wherein each criticality metric of the plurality of criticality metrics comprises a sum of instruction latencies of all instructions directly and indirectly dependent on an instruction of the plurality of instructions that corresponds to a node of the first plurality of nodes that corresponds to the criticality metric.

### Claim 12 (depends on 10)

The method of claim 10, wherein determining the optimized schedule comprises:
determining that the instruction corresponding to the root node depends on an unscheduled instruction of the plurality of instructions, based on the directed graph; and
responsive to determining that the instruction corresponding to the root node depends on the unscheduled instruction:
scheduling the unscheduled instruction prior to scheduling the instruction corresponding to the root node; and
removing a node corresponding to the unscheduled instruction from the max heap data structure.

### Claim 13 (depends on 10)

The method of claim 10, wherein:
the method further comprises, prior to scheduling the instruction corresponding to the root node, determining that a functional unit corresponding to a type of the instruction corresponding to the root node is available; and
scheduling the instruction corresponding to the root node is responsive to determining that the functional unit corresponding to the type of the instruction corresponding to the root node is available.

### Claim 14 (depends on 10)

The method of claim 10, wherein:
the method further comprises, prior to scheduling the instruction corresponding to the root node, determining that a functional unit corresponding to a type of the instruction corresponding to the root node is not available; and
responsive to determining that the functional unit corresponding to the type of the instruction corresponding to the root node is not available:
scheduling a next-most-critical instruction for which a corresponding functional unit is available; and
removing a node corresponding to the next-most-critical instruction from the max heap data structure.

### Claim 15 (depends on 10)

The method of claim 10, wherein the method further comprises rebalancing the max heap data structure.

### Claim 16 (depends on 15)

The method of claim 15, wherein rebalancing the max heap data structure comprises:
identifying two or more nodes of the max heap data structure as having the same highest criticality metric; and
selecting a node of the two or more nodes that corresponds to a longest instruction latency as the root node.

### Claim 17 (depends on 10)

The method of claim 10, wherein determining the optimized schedule comprises reordering the plurality of instructions to perform load latency hiding.

### Claim 18

A non-transitory computer-readable medium, having stored thereon computer-executable instructions that, when executed by a processor device, cause a dependency identifier circuit of the processor device to:
generate an initial schedule comprising a plurality of instructions;
construct a directed graph based on the initial schedule, wherein:
each node of a first plurality of nodes of the directed graph corresponds to an instruction of the plurality of instructions; and
each directed edge of one or more directed edges of the directed graph indicates an instruction dependency;
calculate a plurality of criticality metrics corresponding to the first plurality of nodes;
generate a max heap data structure comprising a second plurality of nodes based on the plurality of criticality metrics;
determine an optimized schedule comprising the plurality of instructions by causing the processor device to iteratively:
identify a root node of the max heap data structure as a node of the second plurality of nodes having a highest criticality metric;
schedule an instruction of the plurality of instructions corresponding to the root node; and
remove the root node from the max heap data structure; and
execute the plurality of instructions according to the optimized schedule.

### Claim 19 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein each criticality metric of the plurality of criticality metrics comprises a sum of instruction latencies of all instructions directly and indirectly dependent on an instruction of the plurality of instructions that corresponds to a node of the first plurality of nodes that corresponds to the criticality metric.

### Claim 20 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the computer-executable instructions cause the processor device to determine the optimized schedule by causing the processor device to:
determine whether the instruction corresponding to the root node depends on an unscheduled instruction of the plurality of instructions, based on the directed graph; and
responsive to determining that the instruction corresponding to the root node depends on the unscheduled instruction:
schedule the unscheduled instruction prior to scheduling the instruction corresponding to the root node; and
remove a node corresponding to the unscheduled instruction from the max heap data structure.

### Claim 21 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein:
the computer-executable instructions further cause the processor device to, prior to scheduling the instruction corresponding to the root node:
determine whether a functional unit corresponding to a type of the instruction corresponding to the root node is available; and
responsive to determining that the functional unit corresponding to the type of the instruction corresponding to the root node is not available:
schedule a next-most-critical instruction for which a corresponding functional unit is available; and
remove a node corresponding to the next-most-critical instruction from the max heap data structure; and
the computer-executable instructions cause the processor device to schedule the instruction corresponding to the root node responsive to determining that the functional unit corresponding to the type of the instruction corresponding to the root node is available.

### Claim 22 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the computer-executable instructions further cause the processor device to rebalance the max heap data structure.

### Claim 23 (depends on 22)

The non-transitory computer-readable medium of claim 22, wherein the computer-executable instructions cause the processor device to rebalance the max heap data structure by causing the processor device to:
identify two or more nodes of the max heap data structure as having the same highest criticality metric; and
select a node of the two or more nodes that corresponds to a longest instruction latency as the root node.

### Claim 24 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the computer-executable instructions cause the processor device to determine the optimized schedule by causing the processor device to reorder the plurality of instructions to perform load latency hiding.
