Commit dc8a079
committed
staticdata: Don't discard inlineable code that may be needed to compile inference
See #58841 (comment).
We were accidentally discarding inferred code during staticdata preparation that
we would need immediately afterwards to satisfy inlining requests during code
generation for the system image. This was resulting in spurious extra compilation
at the first inference after sysimage reload. Additionally it was likely causing
various unnecessary dispatch slow paths in the generated inference code.1 parent 72e2c45 commit dc8a079
2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
759 | 768 | | |
760 | 769 | | |
761 | 770 | | |
| |||
924 | 933 | | |
925 | 934 | | |
926 | 935 | | |
927 | | - | |
928 | | - | |
| 936 | + | |
| 937 | + | |
929 | 938 | | |
930 | 939 | | |
931 | 940 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2498 | 2498 | | |
2499 | 2499 | | |
2500 | 2500 | | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
2501 | 2507 | | |
0 commit comments