hwsync is only required for seq_cst fences, acquire and release one can use
the cheaper lwsync.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM.
Please add a test run with ppc440 to make sure we still get msync.
lib/Target/PowerPC/PPCInstrInfo.td | ||
---|---|---|
2559 ↗ | (On Diff #14363) | By the way, what happens to AtomicOrdering == 2 (which is Monotonic). Is that (should that be) a noop? |
Comment Actions
I will add the test with ppc440.
This path is only for fences, and I do not think a monotonic fence makes
much sense. So it is not special cased (but should trigger a bunch of
errors earlier in the front-end or at least asserts in the middle-end).
Thanks for the reviews !