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)
commitc6820ec1c2bdfba3f044b634476cdcafda52e0d0
tree48d21c76e697f012311186a211e7539e948247bf
parent5e0ea66d592d0f9b99353f766439e440e57c598d
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.

llvm-svn: 232197
llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp