diff options
| author | bors <bors@rust-lang.org> | 2019-11-28 07:06:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-11-28 07:06:40 +0000 |
| commit | 2539b5f157599fbcc005371a34897a42fa0a2421 (patch) | |
| tree | 3520b3c027d4362dbf77ba577ec9a35e09f4ab43 /src/rustllvm/PassWrapper.cpp | |
| parent | 96ad8e5fbcf00afc1ccde386b031919b4d01aa33 (diff) | |
| parent | a28fbd46082f8ff6dd09dbbbaa553f09bd6ff824 (diff) | |
| download | rust-2539b5f157599fbcc005371a34897a42fa0a2421.tar.gz rust-2539b5f157599fbcc005371a34897a42fa0a2421.zip | |
Auto merge of #66294 - davidhewitt:const_fn_memoization, r=oli-obk
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. With thanks to @oli-obk for mentoring me through this at RustFest Barcelona. r? @oli-obk
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
