Apparatus, method, and system for providing a decision mechanism for conditional commits in an atomic region

US9817644B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-9817644-B2
Application numberUS-201514867950-A
CountryUS
Kind codeB2
Filing dateSep 28, 2015
Priority dateSep 25, 2010
Publication dateNov 14, 2017
Grant dateNov 14, 2017

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

An apparatus and method is described herein for conditionally committing and/or speculative checkpointing transactions, which potentially results in dynamic resizing of transactions. During dynamic optimization of binary code, transactions are inserted to provide memory ordering safeguards, which enables a dynamic optimizer to more aggressively optimize code. And the conditional commit enables efficient execution of the dynamic optimization code, while attempting to prevent transactions from running out of hardware resources. While the speculative checkpoints enable quick and efficient recovery upon abort of a transaction. Processor hardware is adapted to support dynamic resizing of the transactions, such as including decoders that recognize a conditional commit instruction, a speculative checkpoint instruction, or both. And processor hardware is further adapted to perform operations to support conditional commit or speculative checkpointing in response to decoding such instructions.

First claim

Opening claim text (preview).

What is claimed is: 1. A computing device to optimize program code, the computing device comprising: a compiler hardware module to: (i) identify a section of program code to be optimized, (ii) demarcate at least a portion of the section of program code as an atomic region in response to identification of the section of program code to be optimized, (iii) insert conditional commit code at a conditional commit point determined to be within the atomic region, and (iv) optimize the section of program code in response to identification of the section of program code to be optimized; and a decode hardware module to decode the conditional commit code within the atomic region. 2. The computing device of claim 1 , wherein to demarcate at least a portion of the section of program code as an atomic region comprises to: (i) insert a start transaction instruction at a beginning of the portion of the section of code, and (ii) insert an end transaction instruction at an end of the portion of the section of code. 3. The computing device of claim 1 , wherein to insert the conditional commit code at the conditional commit point determined to be within the atomic region comprises to insert a conditional commit code to: determine a representation of an availability of hardware resources adapted to support transactional execution; and commit the atomic region before an end of the atomic region in response to the representation of the availability of the hardware resources indicating insufficient resources to complete execution of the atomic region. 4. The computing device of claim 3 , wherein the conditional commit code is to jump to a branch target address in response to the representation of the availability of the hardware resources indicating insufficient resources to complete execution of the atomic region. 5. The computing device of claim 4 , wherein the conditional commit code comprises a conditional commit instruction, and wherein the conditional commit instruction comprises the branch target address. 6. The computing device of claim 4 , wherein the compiler hardware module is further to insert a commit instruction at the branch target address, wherein the commit instruction is to commit the atomic region. 7. The computing device of claim 1 , wherein to optimize the section of program code comprises to optimize the section of code via an optimization technique selected from a group consisting of Partial Redundancy Load Elimination (PRLE), Partial Dead Store Elimination (PDSE), loop optimization, data-flow optimization, code generation optimization, bounds checking elimination, branch offset optimization, dead code elimination, and jump threading. 8. A non-transitory, machine readable medium comprising a plurality of instructions stored thereon that in response to being executed by a computing device, cause the computing device to: identify a section of program code to be optimized; demarcate at least a portion of the section of program code as an atomic region in response to identification of the section of program code to be optimized; insert conditional commit code at a conditional commit point determined to be within the atomic region; and optimize the section of program code in response to identification of the section of program code to be optimized. 9. The non-transitory, machine readable medium of claim 8 , wherein to demarcate at least a portion of the section of program code as an atomic region comprises to: (i) insert a start transaction instruction at a beginning of the portion of the section of code, and (ii) insert an end transaction instruction at an end of the portion of the section of code. 10. The non-transitory, machine readable medium of claim 8 , wherein to insert the conditional commit code at the conditional commit point determined to be within the atomic region comprises to insert a conditional commit code to: determine a representation of an availability of hardware resources adapted to support transactional execution; and commit the atomic region before an end of the atomic region in response to the representation of the availability of the hardware resources indicating insufficient resources to complete execution of the atomic region. 11. The non-transitory, machine readable medium of claim 10 , wherein the conditional commit code is to jump to a branch target address in response to the representation of the availability of the hardware resources indicating insufficient resources to complete execution of the atomic region. 12. The non-transitory, machine readable medium of claim 11 , wherein the conditional commit code comprises a conditional commit instruction, and wherein the conditional commit instruction comprises the branch target address. 13. The non-transitory, machine readable medium of claim 11 , further comprising a plurality of instructions stored thereon that in response to being executed by the computing device, cause the computing device to insert a commit instruction at the branch target address, wherein the commit instruction is to commit the atomic region. 14. The non-transitory, machine readable medium of claim 8 , wherein to optimize the section of program code comprises to optimize the section of code via an optimization technique selected from a group consisting of Partial Redundancy Load Elimination (PRLE), Partial Dead Store Elimination (PDSE), loop optimization, data-flow optimization, code generation optimization, bounds checking elimination, branch offset optimization, dead code elimination, and jump threading. 15. A method for optimizing program code, the method comprising: identifying, by a computing device, a section of program code to be optimized; demarcating, by the computing device, at least a portion of the section of program code as an atomic region in response to identifying the section of program code to be optimized; inserting, by the computing device, conditional commit code at a conditional commit point determined to be within the atomic region; and optimizing, by the computing device, the section of program code in response to identifying the section of program code to be optimized. 16. The method of claim 15 , wherein demarcating at least a portion of the section of program code as an atomic region comprises: (i) inserting a start transaction instruction at a beginning of the portion of the section of code, and (ii) inserting an end transaction instruction at an end of the portion of the section of code. 17. The method of claim 15 , wherein inserting the conditional commit code at the conditional commit point determined to be within the atomic region comprises inserting a conditional commit code to: determine a representation of an availability of hardware resources adapted to support transactional execution; and commit the atomic region before an end of the atomic region in response to the representation of the availability of the hardware resources indicating insufficient resources to complete execution of the atomic region. 18. The method of claim 17 , wherein the conditional commit code is to jump to a branch target address in response to the representation of the availability of the hardware resources indicating insufficient resources to complete execution of the atomic region. 19. The method of claim 18 , further comprising inserting, by the computing device, a commit instruction at the branch target address, wherein the commit instruction is to commit the atomic region. 20. The method of claim 15 , wherein optimizing the section of program code co

Assignees

Inventors

Classifications

  • to perform conditional operations, e.g. using predicates or guards · CPC title

  • for test execution, e.g. scheduling of test suites · CPC title

  • Test management · CPC title

  • Binary to binary · CPC title

  • Speculative instruction execution · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US9817644B2 cover?
An apparatus and method is described herein for conditionally committing and/or speculative checkpointing transactions, which potentially results in dynamic resizing of transactions. During dynamic optimization of binary code, transactions are inserted to provide memory ordering safeguards, which enables a dynamic optimizer to more aggressively optimize code. And the conditional commit enables …
Who is the assignee on this patent?
Intel Corp
What technology area does this patent fall under?
Primary CPC classification G06F8/443. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Nov 14 2017 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 2 related publications on this page (citations in our corpus or others sharing the same primary CPC).