Commit b2ed6f5
Refactor cfold propagation and add eager mode
Refactor `cfold` in `ecPhlCodeTx` to track propagated substitutions
and preserved dependencies explicitly, and use that state to decide
when folding can continue across assignments and structured
instructions.
Add an eager `cfold*` variant that keeps folding by promoting
preserved variables into the propagated substitution when possible,
and extend `tests/cfold.ec` with coverage for both the default and
eager behaviors.1 parent cc03b30 commit b2ed6f5
7 files changed
Lines changed: 309 additions & 111 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2991 | 2991 | | |
2992 | 2992 | | |
2993 | 2993 | | |
2994 | | - | |
| 2994 | + | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
2995 | 2998 | | |
2996 | 2999 | | |
2997 | 3000 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
760 | | - | |
| 760 | + | |
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| |||
0 commit comments