| | @@ -888,6 +888,8 @@ |
| 888 | 888 | |
| 889 | 889 | ## Inlining a procedure that only returns |
| 890 | 890 | |
| 891 | +**Status.** Approved by the owner on 2026-10-23 and implemented: a call of a procedure whose body is `return e`, with no locals and one scalar result, is made in place, its arguments in temporaries; a failed check in `e` is told at the callee's line, and the callee is in no trace (scanning 887 ms to 638, grep 268 to 199). |
| 892 | + |
| 891 | 893 | Not the language's but the compiler's: a call of a procedure whose |
| 892 | 894 | body is `return` and an expression, as `Grep.zeros` and |
| 893 | 895 | `Scan.tokPos` are, made in place of the call. One pass keeps no |
| | @@ -1476,6 +1478,8 @@ |
| 1476 | 1478 | and it is `execvp`'s choice. |
| 1477 | 1479 | |
| 1478 | 1480 | ## An investigation: where a hot loop's time goes |
| 1481 | + |
| 1482 | +**Status.** Done 2026-10-23: neither a register allocator nor statement inlining earns its lines; an array parameter indexed as `[pointer + index * size]`, kept parameters in callee-saved registers, and inlining a procedure that only returns, were. |
| 1479 | 1483 | |
| 1480 | 1484 | Not a change: a measurement, whose report would say whether register |
| 1481 | 1485 | allocation, inlining (see "Inlining a procedure that only returns"), |