[clang] [Clang][OpenCL][AMDGPU] OpenCL Kernel stubs should be assigned alwaysinline attribute (PR #137769)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Fri May 2 03:15:04 PDT 2025
================
@@ -6174,6 +6174,19 @@ void CodeGenModule::EmitGlobalFunctionDefinition(GlobalDecl GD,
CodeGenFunction(*this).GenerateCode(GD, Fn, FI);
setNonAliasAttributes(GD, Fn);
+
+ bool ShouldAddOptNone = !CodeGenOpts.DisableO0ImplyOptNone &&
+ (CodeGenOpts.OptimizationLevel == 0) &&
+ !D->hasAttr<MinSizeAttr>();
----------------
arsenm wrote:
Yes, I know why you did this. I'm objecting to the fact that you need to
https://github.com/llvm/llvm-project/pull/137769
More information about the cfe-commits
mailing list