Hoist the rest of the logic for promoting single-store allocas into the
authorChandler Carruth <chandlerc@gmail.com>
Sun, 21 Jul 2013 01:52:33 +0000 (01:52 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 21 Jul 2013 01:52:33 +0000 (01:52 +0000)
commitd17303c47f5654f7ecae25b340cac84128add856
tree2008c8a764c5e5256da7bb7d48abb0ed0539fc86
parent5dc22183f9d076cdbac4fc478f84abf58240661d
Hoist the rest of the logic for promoting single-store allocas into the
helper function. This leaves both trivial cases handled entirely in
helper functions and merely manages the list of allocas to process in
the run method.

The next step will be to handle all of the trivial promotion work prior
to even creating the core class and the subsequent simplifications that
enables.

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