This is an archive of the discontinued LLVM Phabricator instance.

llvm-reduce: Add a reduction to replace atomics with non-atomics
ClosedPublic

Authored by arsenm on Oct 21 2022, 3:55 PM.

Details

Summary

Make load and store non-atomic. Make the others monotonic.

We could probably try to incrementally relax the orderings; not sure
how useful that would be.

Diff Detail

Event Timeline

arsenm created this revision.Oct 21 2022, 3:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 21 2022, 3:55 PM
arsenm requested review of this revision.Oct 21 2022, 3:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 21 2022, 3:55 PM
Herald added a subscriber: wdng. · View Herald Transcript
aeubanks accepted this revision.Oct 21 2022, 4:06 PM

setAtomic also sets syncscope, lgtm

llvm/tools/llvm-reduce/deltas/ReduceMemoryOperations.cpp
106

Ordering

This revision is now accepted and ready to land.Oct 21 2022, 4:06 PM