[PATCH] D99696: [clang] WIP: NRVO: Improvements and handling of more cases.
Matheus Izvekov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 31 17:42:03 PDT 2021
mizvekov created this revision.
Herald added a subscriber: lxfind.
mizvekov requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This expands NRVO propagation for more cases:
Parse analysis improvement:
Lambdas and Blocks with dependent return type can have their variables marked as
NRVO Candidates.
Variable instantiation improvement:
Functions, Lambdas, and Blocks which have auto return type have their
variables' NRVO status propagated. For Blocks with non-auto return type,
as a limitation, this propagation does not consider the actual return
type.
Signed-off-by: Matheus Izvekov <mizvekov at gmail.com>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D99696
Files:
clang/include/clang/Sema/Sema.h
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaCoroutine.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/SemaStmt.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99696.334566.patch
Type: text/x-patch
Size: 28051 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210401/ef06f144/attachment-0001.bin>
More information about the cfe-commits
mailing list