Invention Grant
US08578141B2 Loop predictor and method for instruction fetching using a loop predictor 有权
循环预测器和使用循环预测器进行指令读取的方法

Loop predictor and method for instruction fetching using a loop predictor
Abstract:
A loop predictor and a method for instruction fetching using a loop predictor. A processor may include a loop predictor in addition to a primary branch predictor. A relatively common scenario in program execution is that a set of branches repeat over and over forming a loop. The loop may be detected based on a repeated pattern of access to a data structure used for branch prediction. Once a loop is detected and it may be determined whether the codes would stay in the loop for at least a duration sufficient to disable the branch prediction. On a determination that the detected loop is locked, a sequence of instruction addresses in one iteration of the detected loop may be captured in a buffer and the branch predictor may be turned off and a sequence of fetch instructions may be played from the buffer.
Information query
Patent Agency Ranking
0/0