[PATCH] D27109: [OpenCL] Prevent generation of globals in non-constant address space for OpenCL
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 28 06:58:23 PST 2016
yaxunl added inline comments.
================
Comment at: lib/CodeGen/CGDecl.cpp:954
+ if (!getLangOpts().OpenCL || Ty.getAddressSpace() == LangAS::opencl_constant)
+ if (CGM.getCodeGenOpts().MergeAllConstants && !NRVO && !isByRef &&
+ CGM.isTypeConstant(Ty, true)) {
----------------
can we merge this if with the above if?
https://reviews.llvm.org/D27109
More information about the cfe-commits
mailing list