[PATCH] D45535: [DSE] Teach the pass that atomic memory intrinsics are stores.

Daniel Neilson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 11 14:10:00 PDT 2018


dneilson created this revision.
dneilson added reviewers: mkazantsev, skatkov, apilipenko, efriedma, rsmith.

This change teaches DSE that the atomic memory intrinsics are stores
that can be eliminated, and can allow other stores to be eliminated.
This change specifically does not teach DSE that these intrinsics
can be partially eliminated (i.e. length reduced, and dest/src changed);
that will be handled in another change.


Repository:
  rL LLVM

https://reviews.llvm.org/D45535

Files:
  include/llvm/Analysis/MemoryLocation.h
  lib/Analysis/MemoryLocation.cpp
  lib/Transforms/Scalar/DeadStoreElimination.cpp
  test/Transforms/DeadStoreElimination/memintrinsics.ll
  test/Transforms/DeadStoreElimination/simple.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45535.142071.patch
Type: text/x-patch
Size: 14910 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180411/e5a82cca/attachment.bin>


More information about the llvm-commits mailing list