diff options
author | Roman Rusyaev <rusyaev.rm@gmail.com> | 2022-07-26 18:56:04 +0800 |
---|---|---|
committer | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2022-07-26 18:57:10 +0800 |
commit | fec5ff2a3230ac9214891879e97b67dd6db833ed (patch) | |
tree | 73900b3b45ffc0c4095544f4b5a8563de27fbc60 /llvm/lib/Bitcode/Reader | |
parent | bf759e3b10386adc6734f4def5e3c343f8fbbd50 (diff) | |
download | llvm-fec5ff2a3230ac9214891879e97b67dd6db833ed.zip llvm-fec5ff2a3230ac9214891879e97b67dd6db833ed.tar.gz llvm-fec5ff2a3230ac9214891879e97b67dd6db833ed.tar.bz2 |
[Clang] [P2025] Analyze only potential scopes for NRVO
Before the patch we calculated the NRVO candidate looking at the
variable's whole enclosing scope. The research in [P2025] shows that
looking at the variable's potential scope is better and covers more
cases where NRVO would be safe and desirable.
Many thanks to @Izaron for the original implementation.
Reviewed By: ChuanqiXu
Differential Revision: https://reviews.llvm.org/D119792
Diffstat (limited to 'llvm/lib/Bitcode/Reader')
0 files changed, 0 insertions, 0 deletions