How to tell nvcc that some `if` must diverge and stop trying to fuse previous statements into it?

To solve this. Besides local memory (and global memory) one can a) use shared memory b) unroll the loops c) use conditional code to statically reorder registers