[cleanup] Hoist the promotion dispatch logic into the promote function
authorChandler Carruth <chandlerc@gmail.com>
Wed, 2 Jul 2014 03:07:15 +0000 (03:07 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 2 Jul 2014 03:07:15 +0000 (03:07 +0000)
commit5c654241382c7b8456887162fd04a0a9406c11c9
tree90cd9c222e5393730431cb008bd803096ab38069
parent42caaf8e17e803ff30f50ebb0527d2657f2de7ed
[cleanup] Hoist the promotion dispatch logic into the promote function
so that we can use return to express it more cleanly and avoid so many
nested switch statements.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212158 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp