Is it worth it to unwind a static loop with a lot of branches?

I have a static loop with a lot of branches inside. If I unwind it, and flatten out obvious branches, it becomes sequential code. Is branch prediction good enough to avoid following every single path in each iteration of the loop or do I have to do that manually by unwinding the loop?

Similar questions and discussions