Missed optimization of C++ code in Clang or bug in GCC?(godbolt.org)
godbolt.org
Missed optimization of C++ code in Clang or bug in GCC?
https://godbolt.org/z/47M3xGY6G
2 comments
neither? clang has decided to inline, gcc hasn't. both are valid.
Check this case:
https://godbolt.org/z/hMYY1sxKe
Any idea why we have instructions after ret?
Any idea why we have instructions after ret?
This is very interesting. C++ optimization is super importnat. Thanks for sharing.