METHOD AND APPARATUS FOR PROFILE-BASED REORDERING OF PROGRAM PORTIONS IN A COMPUTER PROGRAM
Patent №
US 5,950,009
Granted
1999-09-07
Filed 1997
Owner
INTERNATIONAL BUSINESS MACHINES CORPORATION
Lab
AI components
1
hardware
Assignment
Recorded
Dataset
AIPD
2023_r1 edition
Application
08814527
An apparatus and several methods provide for a more optimized computer program that will have a faster execution time than was possible using the prior art reordering technique that adds to a trace until it finds no more predecessors or successors to add. The apparatus and methods disclosed herein use a variety of methods to reorder the program portions in a more intelligent manner that will improve its run-time performance. Each of these methods involves constructing traces in the control flow graph of the computer program. In a first embodiment, a basic block is only added to a trace if it is not negligible within predetermined limits. This negligibility test results in traces that are not extended for infrequently executed basic blocks. In a second embodiment, a basic block is only added to a trace if it is a perfect partner with the last basic block added to the trace. The concept of a "perfect partner" helps to match basic blocks together in a trace that have the greatest affinity for each other. In a third embodiment, a basic block is only added to a trace if it satisfies "should follow" flags and predetermined negligibility criteria. The "should follow" flags and negligibility criteria provide a complex criteria for adding basic blocks to a trace, criteria that create more efficient code in some specific circumstances.
AI classification
Ownership
INTERNATIONAL BUSINESS MACHINES CORPORATION
assignment · 86550440
Assignors
BORTNIKOV, VITA, MENDELSON, BILHA, NOVICK, MARK, SCHMIDT, WILLIAM JON, SHAVIT-LOTTEM, INBAL
On an employer assignment, the assignors are typically the inventors.