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

Benjamin Kramer benny.kra at gmail.com
Tue Mar 3 14:32:18 PST 2015


In http://reviews.llvm.org/D8034#133875, @rsmith wrote:

> Don't you also need a change to avoid performing the dynamic initialization of the temporary? (If not, where and how do we catch that case?)


Not sure if I understand. If the temporary needs dynamic initialization then we can't constant fold the initializer and fall through to the existing CreateMemTemp call.


http://reviews.llvm.org/D8034

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list