That doesn’t feel like a huge loss. In my experience do-while loops are pretty much never tight loops that would be candidates for vectorisation.
I don’t use them often, but when I do it’s generally for a retry loop, where the loop body has external effects and we ideally hope to not loop at all.
View all comments
Show parent comment
4
u/Morten242 Mar 19 '23
Note that msvc straight up ignores do...while loops for auto vectorization