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

Make fold standalone. #72139

Merged
merged 3 commits into from
May 20, 2020
Merged

Make fold standalone. #72139

merged 3 commits into from
May 20, 2020

Commits on May 17, 2020

  1. Make fold standalone.

    `fold` is currently implemented via `try_fold`, but implementing it
    directly results in slightly less LLVM IR being generated, speeding up
    compilation of some benchmarks.
    
    (And likewise for `rfold`.)
    
    The commit adds `fold` implementations to all the iterators that lack
    one but do have a `try_fold` implementation. Most of these just call the
    `try_fold` implementation directly.
    nnethercote committed May 17, 2020
    Configuration menu
    Copy the full SHA
    4b7c3d8 View commit details
    Browse the repository at this point in the history
  2. Tweak partition, unzip, try_find.

    Many default iterator methods use `try_fold` or `fold`, and these ones
    can too.
    nnethercote committed May 17, 2020
    Configuration menu
    Copy the full SHA
    c2abf8f View commit details
    Browse the repository at this point in the history

Commits on May 18, 2020

  1. Configuration menu
    Copy the full SHA
    959bd48 View commit details
    Browse the repository at this point in the history