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)
commitaa6afbb831b8472ee07b25428a670ac9e9682942
treead0c2e09469a33543a3e0223a94ab89b7f1cfb39
parent4f0c080b93adfe769bfeeff92c6d768df2a31b3d
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.

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