OSDN Git Service

Fix a crash in scalarrepl for memcpy/memmove where the source and destination
authorBob Wilson <bob.wilson@apple.com>
Tue, 19 Jan 2010 04:32:48 +0000 (04:32 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 19 Jan 2010 04:32:48 +0000 (04:32 +0000)
commita756b1d914eaf4ad610d29398e5831b394bd1547
treea67b71bd18f269b5e2773edbc7d294283994946f
parentc1ef06ac5264cb43f148590091606f0ed90a72e9
Fix a crash in scalarrepl for memcpy/memmove where the source and destination
are the same.  I had already fixed a similar problem where the source and
destination were different bitcasts derived from the same alloca, but the
previous fix still did not handle the case where both operands are exactly
the same value.  Radar 7552893.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93848 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp
test/Transforms/ScalarRepl/2010-01-18-SelfCopy.ll [new file with mode: 0644]