llvm-project/llvm/test/Transforms/DeadStoreElimination
Chris Lattner 94fbdf3814 Fix PR8728, a miscompilation I recently introduced. When optimizing
memcpy's like:
  memcpy(A, B)
  memcpy(A, C)

we cannot delete the first memcpy as dead if A and C might be aliases.
If so, we actually get:

  memcpy(A, B)
  memcpy(A, A)

which is not correct to transform into:

  memcpy(A, A)

This patch was heavily influenced by Jakub Staszak's patch in PR8728, thanks
Jakub!

llvm-svn: 120974
2010-12-06 01:48:06 +00:00
..
PartialStore.ll Enhance DSE to handle the variable index case in PR8657. 2010-11-30 23:43:23 +00:00
const-pointers.ll Make BasicAliasAnalysis a normal AliasAnalysis implementation which 2010-10-18 18:04:47 +00:00
crash.ll clean up DSE tests, removing some poorly reduced and useless old test, 2010-11-30 01:00:34 +00:00
dg.exp sabre brings to my attention that the 'tr' suffix is also obsolete 2008-05-20 21:00:03 +00:00
free.ll Enhance DSE to handle the case where a free call makes more than 2010-11-12 02:19:17 +00:00
lifetime.ll Make BasicAliasAnalysis a normal AliasAnalysis implementation which 2010-10-18 18:04:47 +00:00
memintrinsics.ll Reapply r86359, "Teach dead store elimination that certain intrinsics write to 2009-11-10 06:46:40 +00:00
no-targetdata.ll Make BasicAliasAnalysis a normal AliasAnalysis implementation which 2010-10-18 18:04:47 +00:00
simple.ll Fix PR8728, a miscompilation I recently introduced. When optimizing 2010-12-06 01:48:06 +00:00