commit | 497b837aeb0c3fb383eeffd452ee6f5c151e251e | [log] [tgz] |
---|---|---|
author | James Harris <james.harris@intel.com> | Mon Mar 01 11:13:41 2021 -0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Mar 02 19:39:24 2021 -0500 |
tree | 0b48d9605df1a74c5a71e6eb3f30b20fb9d696b4 | |
parent | c5caa9b916d15212228116a467ee6f5ccdb519ee [diff] |
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: James Harris <james.harris@intel.com>