1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/test/Transforms/DeadStoreElimination
Sanjoy Das 5a9c59951b [DSE] Don't DSE stores that subsequent memmove calls read from
Summary:
We used to remove the first memmove in cases like this:

  memmove(p, p+2, 8);
  memmove(p, p+2, 8);

which is incorrect.  Fix this by changing isPossibleSelfRead to what was most
likely the intended behavior.

Historical note: the buggy code was added in https://reviews.llvm.org/rL120974
to address PR8728.

Reviewers: rsmith

Subscribers: mcrosier, llvm-commits, jlebar

Differential Revision: https://reviews.llvm.org/D43425

llvm-svn: 325641
2018-02-20 23:19:34 +00:00
..
2011-03-25-DSEMiscompile.ll
2011-09-06-EndOfFunction.ll
2011-09-06-MemCpy.ll
2016-07-17-UseAfterFree.ll
atomic.ll
calloc-store.ll
combined-partial-overwrites.ll
const-pointers.ll
crash.ll
cs-cs-aliasing.ll
debuginfo.ll [DeadStoreElimination] Salvage debug info from dead insts 2018-02-13 18:15:26 +00:00
dominate.ll
fence.ll
free.ll
inst-limits.ll
int_sideeffect.ll
invariant.start.ll
libcalls.ll
lifetime.ll
mda-with-dbg-values.ll
memintrinsics.ll
merge-stores-big-endian.ll
merge-stores.ll [DSE] make sure memory is not modified before partial store merging (PR36129) 2018-01-30 13:53:59 +00:00
no-targetdata.ll
operand-bundles.ll
OverwriteStoreBegin.ll
OverwriteStoreEnd.ll
PartialStore.ll
pr11390.ll
simple.ll [DSE] Don't DSE stores that subsequent memmove calls read from 2018-02-20 23:19:34 +00:00