]> granicus.if.org Git - llvm/commit
instcombine: alloca: Split out simplifyAllocaArraySize(), NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 13 Mar 2015 19:22:03 +0000 (19:22 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 13 Mar 2015 19:22:03 +0000 (19:22 +0000)
commit80cfeabd48532365b09796462b5d950ba467c8bb
treefd148dc47656b2dbbad89e03c74845e927b67cf6
parent52a1ca5306c2873cb2d7962f57d9cc7786e05acd
instcombine: alloca: Split out simplifyAllocaArraySize(), NFC

Follow-up commits will change some of the logic here.  Splitting into a
separate function simplifies the logic by allowing early returns instead
of deeper nesting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232197 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp