If you try to calculate the sum of the array as straightforwardly as possible, then code is vectorized, but the data depency is not gone.
Where can you read about heuristics or logic related to this? I find it quite interesting. But trying to read Passes without any information where to look is not that easy.
New in the community, maybe I can read some updates on IR/Optimizations somewhere?