__kernel code().................
{..................
for (i=0;i<1000000;i++)
{........................
//generating B
if (some condition) then {__global A=_private B}
....................}
....................}
----------------------------------------------------------------
the GPR in kernelanalyzer is 25.
mark the if statement, the GPR in kernelanalyzer is 11.
How to reduce the register using? THX