MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1w630ne/branchavoidant_programming/p7kyl0m/?context=3
r/programming • u/fagnerbrack • Sep 03 '26
92 comments sorted by
View all comments
Show parent comment
5
Aren't there situations where having any branches at all will prevent the compiler from doing vectorization?
5 u/meamZ Sep 03 '26 sure there probably are but it just really depends. Relying on auto-vectorization is risky business anyway... There are so many subtile things that can make code not auto-vectorizable...
sure there probably are but it just really depends. Relying on auto-vectorization is risky business anyway... There are so many subtile things that can make code not auto-vectorizable...
View all comments
Show parent comment
5
u/sacheie Sep 03 '26
Aren't there situations where having any branches at all will prevent the compiler from doing vectorization?