Commit 3509ef3
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 d48a675 commit 3509ef3
2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
758 | 767 | | |
759 | 768 | | |
760 | 769 | | |
| |||
923 | 932 | | |
924 | 933 | | |
925 | 934 | | |
926 | | - | |
927 | | - | |
| 935 | + | |
| 936 | + | |
928 | 937 | | |
929 | 938 | | |
930 | 939 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2499 | 2499 | | |
2500 | 2500 | | |
2501 | 2501 | | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
2502 | 2508 | | |
0 commit comments