Source

Branch

1/ @jakubtomsu_

@nicbarkeragain

Clang failed to recognize it should use a select op in the IR and using a ternary helped. This gets also unrolled and vectorized and it ends up being faster.

GCC seems to always catch this, no idea why is clang being dumb even in a trivial case like this

https://godbolt.org/z/jMqazcenq