×

Optimizing code by exploiting speculation and predication with a cost-benefit data flow analysis based on path profiling information

  • US 5,999,736 A
  • Filed: 05/09/1997
  • Issued: 12/07/1999
  • Est. Priority Date: 05/09/1997
  • Status: Expired due to Term
First Claim
Patent Images

1. A computer implemented method for optimizing execution of code, said code including a plurality of instructions, said method comprising:

  • executing said code to generate path profiling information;

    identifying at least one location for relocating at least one of said plurality of instructions, said at least one location enabled by one of predication and speculation;

    calculating a cost and a benefit for relocating said at least one of said plurality of instructions to said at least one location, said cost and said benefit based on said path profiling information;

    moving said at least one of said plurality of instructions to said at least one location when said benefit exceeds said cost;

    performing one of said speculation and said predication on said at least one of said plurality of instructions; and

    re-executing said code.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×