×

Predicting a table of contents pointer value responsive to branching to a subroutine

  • US 10,656,946 B2
  • Filed: 11/21/2017
  • Issued: 05/19/2020
  • Est. Priority Date: 09/19/2017
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method of facilitating processing within a computing environment, the computer-implemented method comprising:

  • calling a subroutine from a calling module executing on a processor;

    predicting, based on calling the subroutine, a value of a pointer to a reference data structure, the predicting being performed prior to executing a sequence of one or more instructions in the subroutine to compute the value of the pointer;

    determining whether a current instruction in the subroutine corresponds to the sequence of one or more instructions to compute the value of the pointer;

    inserting in the code, based on determining the current instruction corresponds to the sequence of one or more instructions to compute the value, a single check instruction to check the prediction of the value, the inserting replacing the sequence of one or more instructions, wherein instructions to compute the value of the pointer are replaced by the single check instruction; and

    using the value that is predicted to access the reference data structure to obtain a variable value for a variable of the subroutine.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×