Volatile store does not provide any special rules for reordering with atomics.
Usual must alias analysis is enough here.
This makes the behavior similar to how volatile load is handled.
Differential D119818
[MemoryDepndency] Relax the re-ordering with volatile store. skatkov on Feb 15 2022, 1:56 AM. Authored by
Details Volatile store does not provide any special rules for reordering with atomics. This makes the behavior similar to how volatile load is handled.
Diff Detail
Event TimelineComment Actions @reames , last time this part was touched (https://reviews.llvm.org/D16857, ooch 2016) you provided the meaningful review. I would appreciate if you could look at this at some point. To be honest I do not have a motivation example for this change and probably it terms of "do not touch if it works" I can abandon this patch. Comment Actions LGTM w/required changes pre-commit.
|
Autogen this please. And precommit the test before landing the change.