Redundant load elimination on optimizing compilers
Abstract
A method for eliminating redundant loads in an optimizing compiler is provided. When a LOAD and memory operation occur in an iterative loop structure having an induction variable, the method determines if redundant load elimination optimization may be performed by performing the steps of: creating a symbolic address for a LOAD operation, where the LOAD operation follows a memory operation, creating a symbolic address for the memory operation which precedes the LOAD, and subtracting the LOAD symbolic address from the memory operation symbolic address to generate a difference. If the difference is a constant which is divisible by the increment of the induction variable, the method eliminates the LOAD instruction for each increment of the loop and includes an instruction to copy the value of the memory operation to a register, and further includes an instruction to move the copied value from the register to the target of the load. An additional feature of the invention includes the step of, if the difference is a constant which is divisible by a multiple of the increment of the induction variable, wherein the multiple is greater than one, including additional instructions to copy the
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 65.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method in a computer system for performing redundant load elimination optimization for an optimizing compiler, the method comprising the steps of: (a) determining whether a LOAD operation follows a memory operation; (b) testing if the LOAD operation and the memory operation are both functions of a loop induction variable and if the loop induction variable is incremented by an increment, and if so, determining if the LOAD operation and the memory operation are both a function of the same loop induction variable; (c) creating a symbolic expression for both the LOAD operation and the memory
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 65 total)
References Cited — Backward Prior Art (14)
Non-Patent Literature (5)
- Bendelac et al. "CTP--A family of optimizing compilers for the NS32532 microprocessor", IEEE Computer Society Press 1988 pp. 247-250.
- Bendelac et al. CTP A family of optimizing compilers for the NS32532 microprocessor , IEEE Computer Society Press 1988 pp. 247 250.
- Bogong Su; Jian Wang, "GUPR*: a new global software pipelining algorithm", Conference title: Proceedings of the 24th International Symposium on Microarchitecture. MICRO 24, pp. 212-216, Published by ACM, New York, 1991.
- Bogong Su; Jian Wang, GUPR*: a new global software pipelining algorithm , Conference title: Proceedings of the 24th International Symposium on Microarchitecture. MICRO 24, pp. 212 216, Published by ACM, New York, 1991.
- Hisley, Philip N., "Highly polished C code", PC Tech Journal, Jun. 1988, v6 n6 p. 76(15).