METHOD AND APPARATUS FOR MANAGING VARIABLE ASSIGNMENTS IN A PROGRAM
First Claim
1. A computer-implemented method for managing variable assignments in a program, comprisingidentifying a set of variable assignments that is live on a portion of paths to form a set of identified variable assignments, wherein each of the set of identified variable assignments assigns a value to at least one variable of a set of variables,determining a set of program points at which the set of identified variable assignments is closer to a set of locations in the program at which the at least one variable is used, andresponsive to determining that the set of identified variable assignments is movable to the set of program points, moving the set of identified variable assignments to the set of program points.
3 Assignments
0 Petitions
Accused Products
Abstract
The illustrative embodiments described herein provide a computer-implemented method, apparatus, and computer program product for managing variable assignments in a program. The process identifies a set of variable assignments that is live on a portion of paths to form a set of identified variable assignments. Each of the set of identified variable assignments assign a value to at least one variable of a set of variables. The process determines a set of program points at which the set of identified variable assignments is live on all paths. The process also moves the set of identified variable assignments to the set of program points in response to determining that the set of identified variable assignments is movable to the set of program points.
-
Citations
20 Claims
-
1. A computer-implemented method for managing variable assignments in a program, comprising
identifying a set of variable assignments that is live on a portion of paths to form a set of identified variable assignments, wherein each of the set of identified variable assignments assigns a value to at least one variable of a set of variables, determining a set of program points at which the set of identified variable assignments is closer to a set of locations in the program at which the at least one variable is used, and responsive to determining that the set of identified variable assignments is movable to the set of program points, moving the set of identified variable assignments to the set of program points.
-
16. A computer program product comprising:
-
a computer-usable medium having computer-usable program code for managing variable assignments in a program, the computer program product comprising; computer-usable program code for identifying a set of variable assignments that is live on a portion of paths to form a set of identified variable assignments, wherein each of the set of identified variable assignments assigns a value to at least one variable of a set of variables, computer-usable program code for determining a set of program points at which the set of identified variable assignments is closer to a set of locations in the program at which the at least one variable is used, and computer-usable program code, responsive to determining that the set of identified variable assignments is movable to the set of program points, for moving the set of identified variable assignments to the set of program points. - View Dependent Claims (17, 18)
-
-
19. A data processing system comprising:
-
a bus system; a memory connected to the bus system, wherein the memory includes a set of instructions; and a processing unit connected to the bus system, wherein the processing unit executes the set of instructions to identify a set of variable assignments that is live on a portion of paths to form a set of identified variable assignments, wherein each of the set of identified variable assignments assigns a value to at least one variable of a set of variables;
determine a set of program points at which the set of identified variable assignments is closer to a set of locations in a program at which the at least one variable is used; and
move the set of identified variable assignments to the set of program points in response to determining that the set of identified variable assignments is movable to the set of program points. - View Dependent Claims (20)
-
Specification