Commit 3d85fc6
committed
Connect EffGamma condition to egraph, expand loop guards, resolve aliases globally
Three fixes for CI difftest failures:
1. EffGamma condition: Use actual egraph variable (id{N} or BSym "id{N}")
instead of synthetic "cond{N}" disconnected from the value. Fixes
incorrect e-class merges and arm swaps in control_flow and math_ops.
2. Loop guard: Check ALL selection blocks (header, then, else, merge)
against both loop_block_set and continue_block_set, not just the
header. Fixes continue block unreachability in control_flow_complex.
3. resolve_aliases: Extend to cover types_global_values and annotations,
not just function body instructions. Fixes undefined id errors in
matrix_ops.
Test updated to use non-constant condition for merge-return test since
the connected condition now correctly enables constant folding.1 parent d4280cf commit 3d85fc6
2 files changed
Lines changed: 48 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
578 | 576 | | |
579 | 577 | | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
651 | 656 | | |
652 | 657 | | |
653 | 658 | | |
| |||
1772 | 1777 | | |
1773 | 1778 | | |
1774 | 1779 | | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
1775 | 1803 | | |
1776 | 1804 | | |
1777 | 1805 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1259 | 1259 | | |
1260 | 1260 | | |
1261 | 1261 | | |
1262 | | - | |
1263 | 1262 | | |
1264 | 1263 | | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
1265 | 1267 | | |
1266 | 1268 | | |
1267 | 1269 | | |
| |||
0 commit comments