[PATCH] CodeGen: Emit constant array temporaries into read-only globals.

Benjamin Kramer benny.kra at gmail.com
Tue Mar 3 14:24:31 PST 2015


- Disable optimization if -fno-merge-constants is specified
- Enable optimization for records too and update test cases
- Remove bad assert
- Rename globals from ".initializer_list" to ".reftmp"
- Put new globals in the same COMDAT as the containing function


http://reviews.llvm.org/D8034

Files:
  lib/CodeGen/CGExpr.cpp
  test/CodeGenCXX/compound-literals.cpp
  test/CodeGenCXX/cxx0x-initializer-array.cpp
  test/CodeGenCXX/cxx0x-initializer-references.cpp
  test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8034.21140.patch
Type: text/x-patch
Size: 6692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150303/91410b98/attachment.bin>


More information about the cfe-commits mailing list