diff options
author | Matheus Izvekov <mizvekov@gmail.com> | 2021-03-19 03:32:06 +0100 |
---|---|---|
committer | Matheus Izvekov <mizvekov@gmail.com> | 2021-06-12 16:43:32 +0200 |
commit | 1e50c3d785f4563873ab1ce86559f2a1285b5678 (patch) | |
tree | 7ab086f89c41c1487ce70f7c9f00310fb09cd50a /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | |
parent | 0d9e8f5f4b68252c6caa1ef81a30777b2f5d7242 (diff) | |
download | llvm-1e50c3d785f4563873ab1ce86559f2a1285b5678.zip llvm-1e50c3d785f4563873ab1ce86559f2a1285b5678.tar.gz llvm-1e50c3d785f4563873ab1ce86559f2a1285b5678.tar.bz2 |
[clang] NRVO: Improvements and handling of more cases.
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 improvements:
* Fixes crash when instantiating NRVO variables in Blocks.
* 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.
This also implements exclusion of VarDecls which are references to
dependent types.
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Reviewed By: Quuxplusone
Differential Revision: https://reviews.llvm.org/D99696
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp')
0 files changed, 0 insertions, 0 deletions