@vitaut yeah, true. You should be able to annotate with both [[likely]] and [[unlikely]] at the same time tbh
Charlie
@sabena@mastodon.social
Posts
-
I gave up on trying to make gcc emit branchless code on amd64 and switched to inline asm. -
I gave up on trying to make gcc emit branchless code on amd64 and switched to inline asm.@vitaut yeah, it should. Does GCC get it with pgo data?
-
I gave up on trying to make gcc emit branchless code on amd64 and switched to inline asm.@vitaut I have found clang will emit branchless code come hell or high water. Even in situations where the branchless code is horrible.