summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/union-init2.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert r332847; it caused us to miscompile certain forms of reference ↵Richard Smith2018-05-211-1/+1
| | | | | | initialization. llvm-svn: 332886
* [CodeGen] Recognize more cases of zero initializationSerge Pavlov2018-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | | If a variable has an initializer, codegen tries to build its value. If the variable is large in size, building its value requires substantial resources. It causes strange behavior from user viewpoint: compilation of huge zero initialized arrays like: char data_1[2147483648u] = { 0 }; consumes enormous amount of time and memory. With this change codegen tries to determine if variable initializer is equivalent to zero initializer. In this case variable value is not constructed. This change fixes PR18978. Differential Revision: https://reviews.llvm.org/D46241 llvm-svn: 332847
* clang side to match the LLVM IR type system rewrite patch.Chris Lattner2011-07-091-2/+2
| | | | llvm-svn: 134831
* emit padding as undef values, take 2Nuno Lopes2010-04-161-1/+7
| | | | | | merge also a few tests I had here for this feature, and FileCheck'ize one file llvm-svn: 101535
* fix PR6660/6168: emit padding as zeros instead of undef. Because Chris Lattner2010-04-121-1/+4
| | | | | | | | trailing fields may not be represented in initializer lists, they are being handled as padding and those fields *must* be zero initialized. llvm-svn: 101067
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* make clang emit undefs for padding of structs and unions instead of zeros. ↵Nuno Lopes2009-10-291-1/+1
| | | | | | this enables constant compaction optimizations. llvm-svn: 85504
* Make test a bit more precise.Eli Friedman2009-08-151-1/+1
| | | | llvm-svn: 79073
* Fix a minor issue with unions in the new struct building code.Eli Friedman2009-08-011-0/+4
llvm-svn: 77829
OpenPOWER on IntegriCloud