Dynamic shadows artifacts

There is diff between unroll and not.
https://www.diffchecker.com/43fcZ35Z
I use 32 samples for both search and pcf loops. Shader is quite big 1662assembly lines but performance is quite good. It’s just 2.2ms slower than non soft shadows.