Commit 0ea65e0
committed
Break out some parsing cold functions
This recovers some instruction count regressions after changing most Pat
parsing functions return a non-boxed Pat. It seems to be beneficial to
break out a #[cold] parsing recovery function when the function includes
more parsing, presumably because this requires more stack space and/or
mem copies when LLVM optimizes the wrong path.1 parent 7035846 commit 0ea65e0
2 files changed
+25
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1845 | 1845 | | |
1846 | 1846 | | |
1847 | 1847 | | |
1848 | | - | |
1849 | | - | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
1850 | 1851 | | |
| 1852 | + | |
| 1853 | + | |
1851 | 1854 | | |
1852 | | - | |
1853 | | - | |
1854 | | - | |
1855 | | - | |
1856 | | - | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
1857 | 1859 | | |
1858 | 1860 | | |
1859 | 1861 | | |
| |||
2370 | 2372 | | |
2371 | 2373 | | |
2372 | 2374 | | |
| 2375 | + | |
2373 | 2376 | | |
2374 | 2377 | | |
2375 | 2378 | | |
| |||
2750 | 2753 | | |
2751 | 2754 | | |
2752 | 2755 | | |
2753 | | - | |
| 2756 | + | |
| 2757 | + | |
2754 | 2758 | | |
2755 | 2759 | | |
2756 | 2760 | | |
| |||
2935 | 2939 | | |
2936 | 2940 | | |
2937 | 2941 | | |
| 2942 | + | |
| 2943 | + | |
2938 | 2944 | | |
| 2945 | + | |
| 2946 | + | |
2939 | 2947 | | |
2940 | 2948 | | |
2941 | 2949 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
| 202 | + | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
877 | | - | |
878 | | - | |
879 | | - | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
880 | 883 | | |
881 | 884 | | |
882 | 885 | | |
| |||
922 | 925 | | |
923 | 926 | | |
924 | 927 | | |
| 928 | + | |
925 | 929 | | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | 930 | | |
934 | 931 | | |
935 | 932 | | |
| |||
0 commit comments