Eliminating cold register store/restores within hot function prolog/epilogs
Abstract
A post-link optimization method for removing non-volatile register store/restore instructions from a hot function prolog/epilog, when the non-volatile register is referenced only in cold sections of code within the hot function. The method requires that the hot function be disassembled, but does not require the full control flow graph.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 12.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A computer-implemented method for code optimization, comprising: disassembling object code that has been compiled and linked; analyzing the disassembled code so as to identify a function in the code, the function including store and restore instructions with respect to a non-volatile register that is referenced in a section of the function, which section is executed infrequently when the function is run; and modifying the code so that the section of the function references a substitute location, instead of the non-volatile register, and so as to eliminate a pair of the store and restore instru
- Claim 2Depends on #1
A method according to claim 1 , wherein analyzing the disassembled code comprises: identifying basic blocks of code, the function comprising a plurality of the basic blocks, one or more of which contain the section that i
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (12 of 12 total)
References Cited — Backward Prior Art (9)
Non-Patent Literature (5)
- Aho et al., "Compilers, Principles, Techniques and Tools", Addison-Wesley, 1986, p. 585-722.
- Ealan Henis et al, "Feedback Based Post-link Optimization for Large Subsystems", Second Workshop on Feedback Directed Optimization, Nov. 1999, Haifa, Israel, pp. 13-20.
- Gadi Haber et al, "Reliable Post-link Optimizations Based on Partial Information", Proceedings of Feedback Directed and Dynamic Optimizations Workshop 3, Dec. 2000, Monterey, California, pp. 91-100.
- Milo Martin, et al "Exploiting Dead Value Information", Published in Proceedings of Micro-30, Dec. 1-3, 1997, Research Triangle Park, North California, pp. 1-11.
- Robert Cohn et al, "Hot Cold Optimization of Large Windows/NT Applications" Published in Proceedings of Micro 29, Dec. 2, 1996 Research Triangle Park, North California.