Update the memcpy rewriting to fully support widened int rewriting. This
authorChandler Carruth <chandlerc@gmail.com>
Mon, 15 Oct 2012 10:24:43 +0000 (10:24 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 15 Oct 2012 10:24:43 +0000 (10:24 +0000)
commitd2cd73f6a5103f5de221a67410e35e6bee211fa3
treed1bf9e30986daa6bea0e45ff6bea7282b2256f52
parent94fc64c42fe27aa16dd5611eb3657ff0297801c8
Update the memcpy rewriting to fully support widened int rewriting. This
includes extracting ints for copying elsewhere and inserting ints when
copying into the alloca. This should fix the CanSROA assertion coming
out of Clang's regression test suite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165931 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SROA.cpp
test/Transforms/SROA/basictest.ll