Commit 10c9634
Do constant folding for match variables
Summary: With the removal of the constant folding pass match variables are no longer working when they're in the form `-1` or `1 + 3j`. This adds them back in so patterns work.
Reviewed By: jbower-fb
Differential Revision: D81961225
fbshipit-source-id: c843e571a68ad8218d61048f299363a9d59ee4fb1 parent 4fdeb4b commit 10c9634
2 files changed
Lines changed: 29 additions & 0 deletions
File tree
- cinderx/PythonLib
- cinderx/compiler
- test_cinderx/test_compiler/testcorpus
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
512 | 534 | | |
513 | 535 | | |
514 | 536 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments