摘要 |
PROBLEM TO BE SOLVED: To provide methods, apparatuses, and processors for packing multiple iterations of a loop in a loop buffer.SOLUTION: A loop candidate that meets criteria for buffering is detected in an instruction stream being executed by a processor. When the loop is being written to the loop buffer and the end of the loop is detected, another iteration of the loop is written to the loop buffer if the loop buffer is not yet half full. In this way, short loops are written to the loop buffer multiple times to maximize the instruction operations-per-cycle throughput out of the loop buffer when the processor is in a loop buffer mode. |