Skip to content
Commit 497b837a authored by James Harris's avatar James Harris Committed by Anas Nashif
Browse files

sys: tell compiler about impossible aliasing in dlist APIs



The compiler was inserting additional redundant loads in many
`sys_dlist_*` APIs, in case writes aliased with previous reads.

However, these additional reads are unnecessary, as the only cases
where the aliasing would matter would be a violation of the `dlist`
API contract (e.g. if node->next == node but node->prev != node).

This is decidedly a micro-optimization.

Signed-off-by: default avatarJames Harris <james.harris@intel.com>
parent c5caa9b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment