Missed optimization of C++ code in Clang or bug in GCC?godbolt.org 2 pointspyler5 years ago3 commentsSaveHideCopy link On HNComments−detaro5yneither? clang has decided to inline, gcc hasn't. both are valid.−pylerOP5yCheck this case: https://godbolt.org/z/hMYY1sxKeAny idea why we have instructions after ret?−gabra875yThis is very interesting. C++ optimization is super importnat. Thanks for sharing.
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?
This is very interesting. C++ optimization is super importnat. Thanks for sharing.