Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
immibis
13 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
11 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: