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)
commitf660021db499dae9ee2345020c4fd4a9dd660560
tree242e87e6249af62f5d91d592fac177b587757b80
parentd6d58ba7aafdd1f7e9e36a13766808c439270c01
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186781 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/PromoteMemoryToRegister.cpp