Commit b970ff1
Default instruction output type to Any
If we're adding a bunch of instructions in the middle of an optimization
pass, we don't want to use their (currently uninitialized) types because
they start as Empty, and Empty is a subtype of everything. This breaks
some optimizations.
This Any will get refined the next time we call infer_types.1 parent 608fe6e commit b970ff1
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
669 | 674 | | |
670 | | - | |
671 | 675 | | |
672 | 676 | | |
673 | 677 | | |
| |||
2854 | 2858 | | |
2855 | 2859 | | |
2856 | 2860 | | |
2857 | | - | |
2858 | | - | |
| 2861 | + | |
| 2862 | + | |
2859 | 2863 | | |
2860 | 2864 | | |
2861 | 2865 | | |
| |||
0 commit comments