发明名称 Method, Apparatus, and Program Product for Improving Branch Prediction in a Processor Without Hardware Branch Prediction but Supporting Branch Hint Instruction
摘要 A compiler includes a mechanism for improving branch prediction in a processor that supports a branch hint instruction. The compiler receives a sequence of instructions, wherein the sequence of instructions comprises a loop. This loop sequence employs an hbr instruction to avoid the misprediction penalty of the taken branch to the start of the loop on each loop iteration. However, this penalty will be incurred regardless, on exiting the loop. The compiler inserts a compare and select instruction sequence which dynamically changes the input to the hbr instruction thereby avoiding this penalty when leaving the loop.
申请公布号 US2008010635(A1) 申请公布日期 2008.01.10
申请号 US20060456134 申请日期 2006.07.07
申请人 O'BRIEN JOHN KEVIN;O'BRIEN KATHRYN M 发明人 O'BRIEN JOHN KEVIN;O'BRIEN KATHRYN M.
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址