[MemCpy] Check for alias in performMemCpyToMemSetOptzn, instead of the identity of...
authorTim Shen <timshen91@gmail.com>
Thu, 25 Aug 2016 19:27:26 +0000 (19:27 +0000)
committerTim Shen <timshen91@gmail.com>
Thu, 25 Aug 2016 19:27:26 +0000 (19:27 +0000)
commita3dbead2d66a1b0b563f9648a8301394cf9246ce
treeac7a8d64b75bd2b86be9a1d7512fc7114aadae98
parent3a46def40c2c679c087918cfec00e6120b93da50
[MemCpy] Check for alias in performMemCpyToMemSetOptzn, instead of the identity of two operands

Summary:
This fixes pr29105. The reason is that lifetime marks creates new
aliasing pointers the original ones, but before this patch aliases
were not checked in performMemCpyToMemSetOptzn.

Subscribers: llvm-commits

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

llvm-svn: 279769
llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
llvm/test/Transforms/MemCpyOpt/pr29105.ll [new file with mode: 0644]