发明名称 Method and apparatus for inserting prefetch instructions in an optimizing compiler
摘要 One embodiment of the present invention provides a system that generates code to perform anticipatory prefetching for data references. During operation, the system receives code to be executed on a computer system. Next, the system analyzes the code to identify data references to be prefetched. This analysis can involve: using a two-phase marking process in which blocks that are certain to execute are considered before other blocks; and analyzing complex array subscripts. Next, the system inserts prefetch instructions into the code in advance of the identified data references. This insertion can involve: dealing with non-constant or unknown stride values; moving prefetch instructions into preceding basic blocks; and issuing multiple prefetches for the same data reference.
申请公布号 US7257810(B2) 申请公布日期 2007.08.14
申请号 US20010052999 申请日期 2001.11.02
申请人 SUN MICROSYSTEMS, INC. 发明人 TIRUMALAI PARTHA P;KALOGEROPULOS SPIROS;RAJAGOPALAN MAHADEVAN;SONG YONGHONG;RAO VIKRAM
分类号 G06F9/44;G06F9/30;G06F9/45 主分类号 G06F9/44
代理机构 代理人
主权项
地址