After some experiments it looks that it is faster to have separate statements for the version that relies on cache, and a single statement for the version that uses local memory.
After some experiments it looks that it is faster to have separate
statements for the version that relies on cache, and a single statement
for the version that uses local memory.

isazi/TuneBench,isazi/TuneBench