Hoist the canConvertValue predicate and the convertValue transform out
authorChandler Carruth <chandlerc@gmail.com>
Mon, 15 Oct 2012 08:40:22 +0000 (08:40 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 15 Oct 2012 08:40:22 +0000 (08:40 +0000)
commit11cb6ba5d0fe65c7249ef94c83df294b88d575f0
treea23ba0b8c15e87399304e71e5e55656b271c6568
parent07aae2e7d58fe23e370e0cbb9e1a3def99434c36
Hoist the canConvertValue predicate and the convertValue transform out
into static helper functions. They're really quite generic and are going
to be needed elsewhere shortly.

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