igor.kirillov added inline comments.

================
Comment at: clang/lib/CodeGen/CGStmtOpenMP.cpp:5370
   if (CGM.getCodeGenOpts().OptimizationLevel != 0)
     Fn->addFnAttr(llvm::Attribute::AlwaysInline);
   return Fn;
----------------
I noticed that here we set this attribute on the same function that is created 
by `emitOutlinedFunctionPrologue` but there AlwaysInline attribute is 
guaranteed to be set under same condition. So I suppose we could remove this 
piece of code?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112645/new/

https://reviews.llvm.org/D112645

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to