Refactor insert and extract of sub-integers into static helpers that
authorChandler Carruth <chandlerc@gmail.com>
Thu, 18 Oct 2012 09:56:08 +0000 (09:56 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 18 Oct 2012 09:56:08 +0000 (09:56 +0000)
commit2360b7ad99eedecaae512373e7be49c2143550cf
tree6276829c32ae7d2482ee658c373b7923096cdb32
parent02d5333eea0078e2551b541403898f4422e83251
Refactor insert and extract of sub-integers into static helpers that
operate purely on values. Sink the alloca loading and storing logic into
the rewrite routines that are specific to alloca-integer-rewrite
driving. This is just a refactoring here, but the subsequent step will
be to reuse the insertion and extraction logic when rewriting integer
loads and stores that have been split and decomposed into narrower loads
and stores.

No functionality changed other than different names for instructions.

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