Fix a logic bug in inline expansion of memcpy / memset with an overlapping
authorEvan Cheng <evan.cheng@apple.com>
Wed, 12 Dec 2012 20:43:23 +0000 (20:43 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 12 Dec 2012 20:43:23 +0000 (20:43 +0000)
commita16e49d56f6349c12da2b561da00c22e13eda09b
tree905a15c1729dca89f596e2ac1ae7f41850b86955
parent94aa3bd0c165c822b682c363fba1a4b5d7960ecd
Fix a logic bug in inline expansion of memcpy / memset with an overlapping
load / store pair. It's not legal to use a wider load than the size of
the remaining bytes if it's the first pair of load / store.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170018 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/CodeGen/Mips/2012-12-12-ExpandMemcpy.ll [new file with mode: 0644]