摘要 |
PROBLEM TO BE SOLVED: To attain improvement in execution efficiency by globalizing a vector register in spite of a change in a vector length inside a certain loop of multiple loops even when that loop is vectorized concerning a compiler and a recording medium for performing globalization in the case of vectorizing a source program. SOLUTION: This device is provided with a means for vectorizing the source program, means for detecting the presence/absence of plural sub-loops inside a certain loop by analyzing the source program, means for respectively outputting an instruction for instructing the execution with the number of times of repetition as a vector length concerning plural loops when the presence of plural sub-loops inside the loop is detected and an instruction for expanding data from a memory to a global register before the loop, and means for respectively outputting an instruction for instructing the execution with the number of times of repetition as a vector length concerning the relevant plural loops when the presence of the plural sub-loops inside the loop is detected, and an instruction for transferring the contents of the global register onto the memory after the loop.
|