Why does u64::trailing_zeros() generate branched assembly when branchless works?

Subscribers:
4,110
Published on ● Video Link: https://www.youtube.com/watch?v=49_yGJvmTzI



Duration: 2:07
6 views
0


Why does u64::trailing_zeros() generate branched assembly when branchless works?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(stackoverflow.com/users/1002430/ana)Ana |
(stackoverflow.com/users/847382/pitaj)PitaJ |
A special thanks goes out to the (https://stackoverflow.com/questions/74620023/why-does-u64trailing-zeros-generate-branched-assembly-when-branchless-works)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

llvm optimization rust x86-64







Tags:
llvm
optimization
rust
x86-64