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 memoization for const function evaluations #66294

Merged
merged 2 commits into from
Nov 28, 2019

Commits on Nov 27, 2019

  1. Add memoization for const function evaluations

    When a const function is being evaluated, as long as all its
    arguments are zero-sized-types (or it has no arguments) then we
    can trivially memoize the evaluation result using the existing
    query mechanism.
    davidhewitt committed Nov 27, 2019
    Configuration menu
    Copy the full SHA
    5398139 View commit details
    Browse the repository at this point in the history
  2. Correct typo in src/librustc_mir/const_eval.rs

    Co-Authored-By: lqd <remy.rakic+github@gmail.com>
    davidhewitt and lqd committed Nov 27, 2019
    Configuration menu
    Copy the full SHA
    a28fbd4 View commit details
    Browse the repository at this point in the history