Commit 1e4ee4e
cc: overhaul inliner heuristics with GCC/LLVM-style growth model
Replace flat MAX_CALLER_GROWTH with proportional growth limits
(GCC-style), hard caller size cap, and recursive-caller stack
estimate (LLVM-style). Fix Bug AL: symaddr-on-Arg during inlining
produced pointer-to-pointer for MEMORY-class struct params; convert
to copy instead. Update caller_size after each inline for accurate
mid-iteration decisions. Remove bugs.md (info in git history/memory).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent aecc388 commit 1e4ee4e
File tree
6 files changed
+179
-145
lines changed- cc
- arch
- aarch64
- x86_64
- ir
- tests/codegen
6 files changed
+179
-145
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1019 | 1019 | | |
1020 | 1020 | | |
1021 | 1021 | | |
1022 | | - | |
| 1022 | + | |
| 1023 | + | |
1023 | 1024 | | |
1024 | 1025 | | |
1025 | 1026 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1052 | 1052 | | |
1053 | 1053 | | |
1054 | 1054 | | |
1055 | | - | |
| 1055 | + | |
| 1056 | + | |
1056 | 1057 | | |
1057 | 1058 | | |
1058 | 1059 | | |
| |||
0 commit comments