When compiling with clang-12 and trying to see why the loop is not vectorized sometimes it is somewhat complicated to get what exactly went wrong and how to fix it. For example value that could not be identified as reduction is used outside the loop. Is there a way to get more detailed information about what exactly went wrong?
EDIT001: An example. Just for lulz, I dont want an answer to this concrete example, I would like to get how to approach such a problem. https://godbolt.org/z/ajqdov83d