aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorMatheus Izvekov <mizvekov@gmail.com>2021-03-19 03:32:06 +0100
committerMatheus Izvekov <mizvekov@gmail.com>2021-06-10 23:02:51 +0200
commit667fbcdd0b2ee5e78f5ce9789b862e3bbca94644 (patch)
tree30d861816554be207a9f429c8fb8a629bee51036 /llvm/lib/IR/Module.cpp
parent5d5b686f6bf6b15b8fbd9ccf957295397f27afc9 (diff)
downloadllvm-667fbcdd0b2ee5e78f5ce9789b862e3bbca94644.zip
llvm-667fbcdd0b2ee5e78f5ce9789b862e3bbca94644.tar.gz
llvm-667fbcdd0b2ee5e78f5ce9789b862e3bbca94644.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/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions