Hoist the insertVector helper to be a static helper.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 17 Dec 2012 13:41:21 +0000 (13:41 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 17 Dec 2012 13:41:21 +0000 (13:41 +0000)
commit7f7d201d737ecb354abd683d63ab8abbf83158c3
tree37780570b4308c0930dc7017f63d2a5fc82fdf1b
parentff6114e872742e966c57202add83b84611e63e97
Hoist the insertVector helper to be a static helper.

This will allow its use inside of memcpy rewriting as well. This routine
is more complex than extractVector, and some of its uses are not 100%
where I want them to be so there is still some work to do here.

While this can technically change the output in some cases, it shouldn't
be a change that matters -- IE, it can leave some dead code lying around
that prior versions did not, etc.

Yet another step in the refactorings leading up to the solution to the
last component of PR14478.

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