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)
commit49c8eea3c045a5174ad29ff65b4d1d360879d9f1
treee09e45f9a7144a7d330b76620c0a7ecba167fcad
parent9d966a2002deedc3809dff9ba51309d712620d9d
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.

llvm-svn: 165931
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/Transforms/SROA/basictest.ll