| |
|
| java.lang.Object EDU.purdue.cs.bloat.tree.StackOptimizer
StackOptimizer | public class StackOptimizer (Code) | | StackOptimizer analyzes the relative distances of various uses of the same
definition of a local variable to add dups and swaps to the bytecode and
eliminate loads and stores.
author: Thomas VanDrunen |
DEBUG | static boolean DEBUG(Code) | | |
StackOptimizer | public StackOptimizer(Block owningBlock)(Code) | | |
optimize | public void optimize()(Code) | | Optimize runs the algorithm for analyzing the tree, looking for
opportunities to replaces stores and loads with dups and swaps. It
initiates several visitors, and information is sotred in defInfoMap and
useInfoMap
|
shouldStore | public boolean shouldStore(LocalExpr expr)(Code) | | Various methods used by CodeGenerator, used as an interface into the
information in defInfoMap and useInfoMap
|
|
|
|