SPs don’t have registers. You should think of an SP as a fancy ALU, not a self-contained execution core since it lacks an instruction decoder and register file. (Tera is right, though. Registers are assigned statically to each thread for the duration of the execution of a block.)
SPs don’t have registers. You should think of an SP as a fancy ALU, not a self-contained execution core since it lacks an instruction decoder and register file. (Tera is right, though. Registers are assigned statically to each thread for the duration of the execution of a block.)
No, the compiler performs its own lifetime analysis and allows the registers to be reused immediately after the addition in both cases. In fact, the compiler will not even assign registers to both values but use one directly from memory in both cases.
No, the compiler performs its own lifetime analysis and allows the registers to be reused immediately after the addition in both cases. In fact, the compiler will not even assign registers to both values but use one directly from memory in both cases.