Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "cheap" mode for compute_missing_ctors. #55167

Merged
merged 1 commit into from
Oct 26, 2018

Commits on Oct 22, 2018

  1. Add a cheap mode for compute_missing_ctors.

    `compute_missing_ctors` is called a lot. It produces a vector, which can
    be reasonably large (e.g. 100+ elements), but the vector is almost
    always only checked for emptiness.
    
    This commit changes `compute_missing_ctors` so it can be called in a
    cheap way that just indicates if the vector would be empty. If
    necessary, the function can subsequently be called in an expensive way
    to compute the full vector.
    
    This change reduces instruction counts for several benchmarks up to 2%.
    nnethercote committed Oct 22, 2018
    Configuration menu
    Copy the full SHA
    b5336c0 View commit details
    Browse the repository at this point in the history