Only jump from InitC if PrefetchGlobalRead
@@ -3720,6 +3720,7 @@ class KernelWriterAssembly(KernelWriter):
for i in range(0, self.numVgprValuC):
kStr += inst("v_mov_b32", vgpr("ValuC+%u"%i), hex(0), "initC")
+ if kernel["PrefetchGlobalRead"]:
#if kernel["PrefetchGlobalRead"]:
# May need to jump to tail after initialization.
kStr += inst("s_cmp_eq_u32", sgpr("LoopCounters+%u"%self.unrollIdx), \
@@ -3733,7 +3734,6 @@ class KernelWriterAssembly(KernelWriter):
kStr += inst("s_cbranch_scc1 label_%04u"\
% lastIterEnd, \
"after InitC, skip to end of prefetch last iter b/c numIter==0")
-
return kStr
