Pipeline loop with sum
I found out what the problem was and why I wasn't able to pipeline this. Vivado HLS found a way to treat sum += ias a constant multiplication and so the latency remained constant.

Therefore, if the latency is constant, the pipleine didn't make sense.