Y
Hacker News
new
|
ask
|
show
|
jobs
Missed optimization of C++ code in Clang or bug in GCC?
(
godbolt.org
)
2 points
by
pyler
1886 days ago
2 comments
detaro
1886 days ago
neither? clang has decided to inline, gcc hasn't. both are valid.
link
pyler
1886 days ago
Check this case:
https://godbolt.org/z/hMYY1sxKe
Any idea why we have instructions after ret?
link
gabra87
1886 days ago
This is very interesting. C++ optimization is super importnat. Thanks for sharing.
link