SPRUIV4D May 2020 – May 2024
If the compiler qualifies the loop for software pipelining, the first few lines look like the following example:
;*----------------------------------------------------------------------------*
;* SOFTWARE PIPELINE INFORMATION
;*
;* Loop found in file : s.cpp
;* Loop source line : 5
;* Loop opening brace source line : 6
;* Loop closing brace source line : 8
;* Known Minimum Iteration Count : 768
;* Known Maximum Iteration Count : 1024
;* Known Max Iteration Count Factor : 256
The loop counter is called the "iteration counter" because it is the number of iterations through a loop. The statistics provided in this section of the block are:
The compiler tries to identify information about the loop counter such as minimum value (known minimum iteration count), and whether it is a multiple of something (has a known maximum iteration count factor).
If a Max Iteration Count Factor greater than 1 is known, the compiler might be more aggressive in packed data processing and loop unrolling optimizations. For example, if the exact value of a loop counter is not known but it is known that the value is a multiple of some number, the compiler may be better able to unroll the loop to improve performance.