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

Richard Smith richard at metafoo.co.uk
Tue Mar 3 14:34:51 PST 2015


In http://reviews.llvm.org/D8034#133876, @bkramer wrote:

> 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.


Sure, but `CreateMemTemp` doesn't perform the initialization; that's done by the caller. How does the caller know to not do that?


http://reviews.llvm.org/D8034

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






More information about the cfe-commits mailing list