Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
immibis
4 days ago
|
parent
|
context
|
favorite
| on:
You can't fool the optimizer
UB doesn't exist in the processor (it does, but not here).
If the compiler knows the pointer is aligned
it can do the transformation.
zrm
2 days ago
[–]
For the compiler to know the pointer is aligned it would have to actually be aligned and there is no guarantee that it is.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: