Method for compiling loops containing prefetch instructions that replaces one or more actual prefetches with one virtual prefetch prior to loop scheduling and unrolling
Abstract
Prefetch instructions having a function to move data to a cache memory from main memory are scheduled simultaneously with execution of other instructions. The prefetch instructions are scheduled by replacing, with the original prefetch instructions, the virtual prefetch instructions obtained by unrolling a kernel section of the schedule constituted by generating a dependency graph having dependent relationships between the prefetch instruction and the memory reference instruction, and then applying the software pipelining thereto, or by further unrolling the kernel section of the constituted schedule to delete the redundant prefetch instructions, or further by applying the software pipelining to the dependency graph which is formed by combining a plurality of prefetch instructions and replacing the prefetch instructions with virtual prefetch instructions.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 86.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A data prefetch method in a compiler for compiling programs to be executed on a computer having a prefetch instruction for transferring data to a cache memory from a main memory in parallel with execution of other instructions, comprising: (a) converting a source program in a loop of a program into intermediate code; (b) replacing a plurality of prefetch instructions included in a loop of a program into one virtual prefetch instruction independent of memory reference; (c) generating a dependency graph having edges and showing a required delay between said virtual prefetch instruction and a
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 86 total)
References Cited — Backward Prior Art (13)
Non-Patent Literature (5)
- D. Callahan et al, "Software Prefetching," 1991 ACM 0-89791-380, pp. 40-52.
- D. Callahan et al, Software Prefetching, 1991 ACM 0 89791 380, pp. 40 52.
- G. Kurpanek et al, "PA7200: A PA-RISC Processor with Integrated High Performance MP Bus Interface," Hewlett-Packard Company, 1994 IEEE, pp. 375-382.
- G. Kurpanek et al, PA7200: A PA RISC Processor with Integrated High Performance MP Bus Interface, Hewlett Packard Company, 1994 IEEE, pp. 375 382.
- S. Ramakrishnan, "Software Pipelining in PA-RISC Compilers," Hewlett-Packard Journal, Jun. 1992, pp. 39-45.