Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Missed optimization of C++ code in Clang or bug in GCC?
(
godbolt.org
)
2 points
by
pyler
on April 25, 2021
|
hide
|
past
|
favorite
|
3 comments
detaro
on April 25, 2021
|
next
[–]
neither? clang has decided to inline, gcc hasn't. both are valid.
pyler
on April 25, 2021
|
parent
|
next
[–]
Check this case:
https://godbolt.org/z/hMYY1sxKe
Any idea why we have instructions after ret?
gabra87
on April 25, 2021
|
prev
[–]
This is very interesting. C++ optimization is super importnat. Thanks for sharing.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: