This repository was archived by the owner on May 18, 2019. It is now read-only.
Commit aa64ed4
[NF] Constant evaluation optimizations.
- Added a field to NFExpression.ARRAY that indicates whether an array
contains only literal expression or not, so that arrays that have
already been evaluated can be skipped during constant evaluation.
- Implemented Ceval.evalExpPartial that only evaluates the parts of an
expression that can be evaluated, keeping e.g. iterators intact.
- Use the function mentioned above to optimize the evaluation of array
constructors and reductions, by partially evaluating the expression
that's evaluated in each iteration.
Belonging to [master]:
- #28121 parent 8b10a66 commit aa64ed4
File tree
11 files changed
+212
-112
lines changed- Compiler/NFFrontEnd
11 files changed
+212
-112
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
0 commit comments