[PATCH] D119927: [Clang] [P2025] More exhaustive tests for NRVO

Evgeny Shulgin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 16 03:13:45 PST 2022


Izaron created this revision.
Izaron added reviewers: mizvekov, Quuxplusone, sammccall, rsmith, doug.gregor.
Izaron requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This is a preliminary patch ahead of D119792 <https://reviews.llvm.org/D119792> (I'll rebase that one on top of this).
This shows what Clang's _current_ behaviour is for calculating NRVO in various
common cases. Then, in D119792 <https://reviews.llvm.org/D119792> (and future patches), I'll be able to demostrate
exactly how LLVM IR for each of these cases changes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119927

Files:
  clang/test/CodeGenCXX/nrvo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119927.409192.patch
Type: text/x-patch
Size: 76905 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220216/a70a7aa8/attachment-0001.bin>


More information about the cfe-commits mailing list