# US 9,354,875 B2 · Enhanced loop streaming detector to drive logic optimization

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

- Number: US 9,354,875 B2
- Document ID: US9354875B2
- Status: Granted
- Kind: B2
- Application number: 13/728,273
- Filed: 2012-12-27
- Published: 2014-07-03
- Granted: 2016-05-31
- Earliest claimed: 2012-12-27
- Assignees: Intel Corporation
- Applicants: Matthew C. Merten; Justin M. Deinlein; Yury N. Ilin; Alexandre J. Farcy; Tong Li; Srikanth T. Srinivasan
- Inventors: Matthew C. Merten; Justin M. Deinlein; Yury N. Ilin; Alexandre J. Farcy; Tong Li; Srikanth T. Srinivasan
- Web page: https://patentgrep.com/patent/US9354875B2

## CPC

- G06F 9/30065: {Loop control instructions; iterative instructions, e.g. LOOP, REPEAT}
- G06F 1/3243: {Power saving in microcontroller unit}
- G06F 1/3287: by switching off individual functional units in the computer system
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/3885: {using a plurality of independent parallel functional units}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

An enhanced loop streaming detection mechanism is provided in a processor to reduce power consumption. The processor includes a decoder to decode instructions in a loop into micro-operations, and a loop streaming detector to detect the presence of the loop in the micro-operations. The processor also includes a loop characteristic tracker unit to identify hardware components downstream from the decoder that are not to be used by the micro-operations in the loop, and to disable the identified hardware components. The processor also includes execution circuitry to execute the micro-operations in the loop with the identified hardware components disabled.

## Claims

### Claim 1

An apparatus comprising:
a decoder to decode instructions in a loop into micro-operations;
a loop streaming detector coupled to the decoder to detect presence of the loop in the micro-operations;
a loop characteristic tracker unit coupled to the loop streaming detector to identify hardware components downstream from the decoder that are not to be used by the micro-operations in the loop, and to disable the identified hardware components, wherein the loop characteristic tracker unit comprises a plurality of tracker bits, one or more of the tracker bits indicate whether a micro-operation of a given characteristic is in the loop;
circuitry to implement a state machine, and wherein the state machine to include a reset state where all tracker bits of the loop characteristic tracker unit are cleared, a learn state where tracker bits corresponding to the micro-operations in the loop are set, and a replay state where the micro-operations in the loop are executed with the identified hardware components disabled according to the tracker bits; and
execution circuitry coupled to the loop streaming detector to execute the micro-operations in the loop with the identified hardware components disabled.

### Claim 2 (depends on 1)

The apparatus of claim 1, further comprising an instruction decode queue coupled to an output of the decoder to store the micro-operations in the loop, wherein the identified hardware components are downstream from the instruction decode queue.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the loop characteristic tracker unit is to disable the identified hardware components by powering down or clock gating the identified hardware components.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the loop characteristic tracker unit is to disable one or more hardware components in an allocator and register alias table unit downstream from the decoder.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein a first subset of the identified hardware components are identified by one or more tracker bits of the loop characteristic tracker unit, the first subset of the identified hardware components include one or more of the following: logic that checks whether a micro-operation writes into one or more special-purpose registers, logic that allocates the special-purpose registers, and logic that handles a full stall condition of the special-purpose registers.

### Claim 6 (depends on 5)

The apparatus of claim 5, wherein the special-purpose registers include one or more of the following: a Floating Point Control Word (FPCW) register, a Multimedia Extensions Control and Status Register (MXCSR), and a segment register.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein a second subset of the identified hardware components are identified by one or more tracker bits of the loop characteristic tracker unit, the second subset of the identified hardware components include one or more of the following: logic that performs transactional memory operations, logic that alters a state of the transactional memory operations, and logic that performs hardware lock control.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein a third subset of the identified hardware components are identified by one or more tracker bits of the loop characteristic tracker unit, the third subset of the identified hardware components include one or more of the following: logic that detects floating point stack adjustments, and logic that tracks valid locations of the floating point stacks.

### Claim 9

A method comprising:
detecting, by a processor, presence of a loop from micro-operations that are decoded by a decoder;
identifying hardware components downstream from the decoder that are not to be used by the micro-operations in the loop;
executing a state machine that includes a reset state where all tracker bits are cleared, a learn state where tracker bits corresponding to the micro-operations in the loop are set, and a replay state where the micro-operations in the loop are executed with the identified hardware components disabled according to the tracker bits; and
executing the micro-operations in the loop with the identified hardware components disabled.

### Claim 10 (depends on 9)

The method of claim 9, wherein identifying further comprises:
setting one or more tracker bits to indicate that a micro-operation of a given characteristic is in the loop; and
disabling one or more of hardware components associated with the one or more tracking bits when the tracker bit is not set.

### Claim 11 (depends on 9)

The method of claim 9, wherein disabling further comprises powering down or clock gating the identified hardware components.

### Claim 12 (depends on 9)

The method of claim 9, wherein a first subset of the identified hardware components are identified by one or more tracker bits of a loop characteristic tracker unit downstream from the decoder, the first subset of the identified hardware components include one or more of the following: logic that checks whether a micro-operation writes into one or more special-purpose registers, logic that allocates the special-purpose registers, and logic that handles a full stall condition of the special-purpose registers.

### Claim 13 (depends on 9)

The method of claim 9, wherein a second subset of the identified hardware components are identified by one or more tracker bits of a loop characteristic tracker unit downstream from the decoder, the second subset of the identified hardware components include one or more of the following: logic that performs transactional memory operations, logic that alters a state of the transactional memory operations, and logic that performs hardware lock control.

### Claim 14 (depends on 9)

The method of claim 9, wherein a third subset of the identified hardware components are identified by one or more tracker bits of a loop characteristic tracker unit downstream from the decoder, the third subset of the identified hardware components include one or more of the following: logic that detects floating point stack adjustments, and logic that tracks valid locations of the floating point stacks.

### Claim 15

A system comprising:
memory; and
a processor coupled to the memory, the processor comprising one or more cores, each of the cores comprising:
a decoder to decode instructions in a loop into micro-operations;
a loop streaming detector coupled to the decoder to detect presence of the loop in the micro-operations;
a loop characteristic tracker unit coupled to the loop streaming detector to identify hardware components downstream from the decoder that are not to be used by the micro-operations in the loop, and to disable the identified hardware component, wherein the loop characteristic tracker unit comprises a plurality of tracker bits, one or more of the tracker bits indicate whether a micro-operation of a given characteristic is in the loops;
circuitry to implement a state machine, and wherein the state machine to include a reset state where all tracker bits of the loop characteristic tracker unit are cleared, a learn state where tracker bits corresponding to the micro-operations in the loop are set, and a replay state where the micro-operations in the loop are executed with the identified hardware components disabled according to the tracker bits; and
execution circuitry coupled to the loop streaming detector to execute the micro-operations in the loop with the identified hardware components disabled.
