| commit | 994ffef4353056363ba5915eeecf0e1b0678f286 | [log] [tgz] |
|---|---|---|
| author | Eli Friedman <eli.friedman@gmail.com> | Sun Nov 30 02:11:09 2008 +0000 |
| committer | Eli Friedman <eli.friedman@gmail.com> | Sun Nov 30 02:11:09 2008 +0000 |
| tree | 2ba1c932955e68494db1a6a70aeb340c83a98275 | |
| parent | 4310ff6d8b22ee223b88811ef9d51ebb0f9ea66b [diff] |
Fix for PR2969: generate a memcpy from a constant for constant
initializers. llvm-gcc appears to be more aggressive, but incorrect,
for constructs like "const int a[] = {1,2,3};"; that said, current
optimizers will do the appropriate optimizations when safe.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60270 91177308-0d34-0410-b5e6-96231b3b80d8