diff options
| author | Florian Hahn <flo@fhahn.com> | 2020-09-09 19:36:41 +0100 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2020-09-09 23:01:58 +0100 |
| commit | 9969c317ff0877ed6155043422c70e1d4c028a35 (patch) | |
| tree | 9b0262a224a7d2246168ff21fafdf32c80f81e5e /llvm/lib/Bitcode/Reader/BitReader.cpp | |
| parent | 0a5dc7effb191eff740e0e7ae7bd8e1f6bdb3ad9 (diff) | |
| download | llvm-9969c317ff0877ed6155043422c70e1d4c028a35.zip llvm-9969c317ff0877ed6155043422c70e1d4c028a35.tar.gz llvm-9969c317ff0877ed6155043422c70e1d4c028a35.tar.bz2 | |
[DSE,MemorySSA] Handle atomic stores explicitly in isReadClobber.
Atomic stores are modeled as MemoryDef to model the fact that they may
not be reordered, depending on the ordering constraints.
Atomic stores that are monotonic or weaker do not limit re-ordering, so
we do not have to treat them as potential read clobbers.
Note that llvm/test/Transforms/DeadStoreElimination/MSSA/atomic.ll
already contains a set of negative test cases.
Reviewed By: asbirlea
Differential Revision: https://reviews.llvm.org/D87386
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitReader.cpp')
0 files changed, 0 insertions, 0 deletions
