Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Missed optimization of C++ code in Clang or bug in GCC?
(opens in new tab)
(godbolt.org)
2 points
pyler
5y ago
3 comments
Save
Share
3 comments
3 comments · 2 top-level
top
newest
oldest
detaro
5y ago
· 1 in thread
neither? clang has decided to inline, gcc hasn't. both are valid.
pyler
OP
5y ago
Check this case:
https://godbolt.org/z/hMYY1sxKe
Any idea why we have instructions after ret?
gabra87
5y ago
This is very interesting. C++ optimization is super importnat. Thanks for sharing.
j
/
k
navigate · click thread line to collapse