Skip to content

[clang] Analyze only potential scopes for NRVO #53847

@Izaron

Description

@Izaron

The current algorithm for calculating the scope's NRVO candidate looks at the whole scope. But the paper [p2025] shows that we only need to look at the variable's potential scope. It will increase the number of cases where we optimize code.

I pushed a patch and explained how it works - https://reviews.llvm.org/D119792#3321293

Now I'm looking for people who can review this patch =) Therefore I created this issue. Any comments on the topic are welcome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions