]> granicus.if.org Git - clang/commit
CodeGen: Optimize emssion of zeroinitialzied arrays
authorDavid Majnemer <david.majnemer@gmail.com>
Sun, 28 Dec 2014 23:46:59 +0000 (23:46 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sun, 28 Dec 2014 23:46:59 +0000 (23:46 +0000)
commit848af0d103ce26e63dac7544fce4a4a4db874a59
tree79e852fad2a7e4cef3aeb5442a3beb02d3375998
parent462b18e34fb2e664648b680d56c2d1d5c9a190a0
CodeGen: Optimize emssion of zeroinitialzied arrays

Create an ConstantAggregateZero upfront if we see that it is viable.
This saves us from having to manually push_back each and every
initializer and then looping back over them to determine if they are
'null'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224908 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprConstant.cpp