Hoist the two trivial promotion routines out of the big class that
authorChandler Carruth <chandlerc@gmail.com>
Sat, 20 Jul 2013 23:59:51 +0000 (23:59 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 20 Jul 2013 23:59:51 +0000 (23:59 +0000)
commit420fafef93010503ff712a0439c978e9aa4007ac
tree1a2dba06e654bb9081e1f254c8d422cd50518bd2
parent48e11fd76daedad8f39d9b812e58d0dcd94dc4f7
Hoist the two trivial promotion routines out of the big class that
handles the general cases.

The hope is to refactor this so that we don't end up building the entire
class for the trivial cases. I also want to lift a lot of the early
pre-processing in the initial segment of run() into a separate routine,
and really none of it needs to happen inside the primary promotion
class.

These routines in particular used none of the actual state in the
promotion class, so they don't really make sense as members.

llvm-svn: 186781
llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp