]> granicus.if.org Git - clang/commit
CodeGen: When emitting stores for an initializer, only emit a GEP if we really need...
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 27 Aug 2012 21:35:58 +0000 (21:35 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 27 Aug 2012 21:35:58 +0000 (21:35 +0000)
commitcfa07e3519cff1c69cd39d02c80263fd6469c3db
tree4e75951cc9f4e9d2a4dd0fe9f3587eb5e8c3eda7
parent29760b452876548f59804e8c02c3276bc7281d5d
CodeGen: When emitting stores for an initializer, only emit a GEP if we really need the store.

This avoids emitting many dead GEPs for large zero-initialized arrays.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162701 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDecl.cpp
test/CodeGen/init.c