全局指令调度可划分为有环和无环两种。
Global instruction scheduling techniques can be roughly divided into two categories: cyclic scheduling and acyclic scheduling.
在全局设置中添加以下指令。
可以看到test1()中每次加法都需要读取和存储全局变量errs,而在test2()中,localerrs分配在寄存器上,只需要一条指令。
Note that test1 must load and store the global errs value each time it is incremented, whereas test2 stores localerrs in a register and needs only a single instruction.
应用推荐