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)
commitce4562bdcb042eb5795f7e3a114da0e86a4c9a8f
tree4413dac2b51647e158442e9294930377e5183355
parente405e5863922012c149af2aa00ab183315e0afc7
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.

llvm-svn: 170328
llvm/lib/Transforms/Scalar/SROA.cpp