Add a new ConstantAggregateZero class, to fix PR239. This makes zero
authorChris Lattner <sabre@nondot.org>
Sun, 15 Feb 2004 05:53:04 +0000 (05:53 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Feb 2004 05:53:04 +0000 (05:53 +0000)
commit40bbeb5d077b1bc2b933d8c8628024dfa9b428c3
tree19d929951a57985d6a1802de986815ebd1f9e73a
parent46ccf6d382568183a2fbbefabd5904bc45b8da2f
Add a new ConstantAggregateZero class, to fix PR239.  This makes zero
initializers for constant structs and arrays take constant space, instead of
space proportinal to the number of elements.  This reduces the memory usage of
the LLVM compiler by hundreds of megabytes when compiling some nasty SPEC95
benchmarks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11470 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Constants.h
lib/VMCore/Constants.cpp