[PATCH] D132275: [clang] Create alloca to pass into static lambda

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 5 10:50:43 PDT 2023


efriedma added a comment.

Possibly the alloca doesn't get eliminated, or doesn't get eliminated early enough for attributor to kick in.  Not sure what context would make that significant, off the top of my head.

Is the lambda in question defined in an inline function (linkonce_odr)?  Maybe we should make EmitLambdaDelegatingInvokeBody emit an always_inline hint; it should be rare that a lambda is both called directly and converted to a function pointer.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132275



More information about the cfe-commits mailing list