summaryrefslogtreecommitdiff
path: root/chapter21
Commit message (Collapse)AuthorAgeFilesLines
* More test case vs RA cleanupCliff Click7 days7-17/+24
| | | | | Missing a few risc/arm encodings. Make private many tests, so they don't escape and the escaped fcn inflate x86 spill numbers
* Towrds getting RA spill counts comparableCliff Click7 days12-99/+150
| | | | Ignore JIGs. Get test suites more conical, so reg alloc spill counts are comparable
* flt->int conversionCliff Click8 days13-4/+117
|
* RoundF32 actually roundsCliff Click8 days1-0/+1
|
* Make RA deterministicCliff Click8 days1-4/+12
|
* Pick up japanese transaltionpr262-doc-followupsCliff Click8 days8-302/+323
| | | | A bunch of minor README fixes, missing TOC, grammer cleanup
* docs: add Japanese translations for all chaptersJun Kawasaki9 days6-0/+1039
|
* Small peep to drop simple store-updates out of loopsCliff Click10 days7-10/+65
|
* Require matching types to use algebraic identiesCliff Click10 days9-9/+9
| | | | Fixes some bugs `flit x; return x ^ 0;` should give an error instead of returning the plain `x`
* Slides for 2026 REBASEreadmeCliff Click11 days1-2/+2
|
* Chapter renumber, and split ch 17Cliff Click12 days33-1118/+1259
| | | | | | Renumber chapters 10a, 10b, 11, 12, 13, 14 -> 10, 11, 13, 12, [11,14]. Split ch 17 into a 17a and 17b; shuffle around im/mutable syntax to be consistent, and present it more slowly. THe new immutable syntax is pushed through all later chapters
* First pass README updatesCliff Click13 days1-0/+3
|
* Fix bug loop tree depth on inf loopsCliff Click13 days9-13/+125
|
* Restore missing anti-dependence walkCliff Click14 days5-15/+46
|
* Move much of the ISA support to shared codeCliff Click14 days126-2433/+406
| | | | The ISA shared handlers here are required for a proper compiler, but contain only trivial bit-massaging operations.
* Move debug printing into shared spaceCliff Click14 days58-1154/+366
| | | | Same as the graph viewer, moves a lot of code out of all Nodes
* Merge pull request #258: same constant phi merge testCliff Click2026-09-301-0/+15
|\ | | | | | | Preserve the regression across the Chapter 10 split by including it in both chapter10a and chapter10b. Validated Chapter05Test in all 22 affected snapshots (374 tests).
| * Add same constant phi merge testfuhsnn2026-09-291-0/+15
| |
* | Forward port mem stuff to ch21Cliff Click2026-09-3040-502/+1565
|/ | | | Also a minor reg-alloc improvement for BrainFuck, ported up to ch25
* Extend smaller-width C results to full widthCliff Click2026-09-282-12/+27
|
* Backport FunPtrCliff Click2026-09-283-11/+26
| | | | | Helps keep functions alive via ptr only (no calls). A few RISC 5 TFP encoding fixes.
* Check un-init not-null constructor fieldsCliff Click2026-09-284-9/+13
| | | | | | | | Propagate BOT inputs; Arith, Load. CallEnd inlining, the FUnPtr dies early. Load asserts when loading against uninit not-null field. Keep not-nill state for storage class. Clean up Node.peep as constant.
* Remove -disablePeepholeCliff Click2026-09-278-92/+7
|
* Extend and backport SubNode peephole (#254)Hsiang-Ying Fu2026-09-253-4/+50
| | | | | | | | | | | | | | | * Extend and backport SubNode peephole * Add tests * Restrict subtraction zero peepholes to integer operands Require resolved integer mode in chapter 25 so zero subtraction preserves floating-point signed zero. Keep nonnumeric operands in the graph for subtraction diagnostics. Add signed-zero coverage from chapter 12 and null-subtraction diagnostics from chapter 22. Confirmed the regressions fail on the original PR. Full Make suites pass in chapters 4-25 (5462 tests), including fresh chapter 25 sys.o compilation. --------- Co-authored-by: Cliff Click <cliffc@acm.org>
* Merge branch 'main' of https://github.com/SeaOfNodes/SimpleCliff Click2026-09-251-1/+1
|\
| * Update test result for sysV (#253)Hsiang-Ying Fu2026-09-251-1/+1
| |
* | Bunch more animation workCliff Click2026-09-255-3/+20
|/
* Bunch better layout optionsCliff Click2026-09-241-1/+3
|
* Keyboard shortcutsCliff Click2026-09-234-6/+26
| | | | | Fast forward/reverse, pick-a-frame. Shorter type names.
* Graph cleanupCliff Click2026-09-222-1/+3
| | | | Phis stay with regions, stop sinks to bottom,
* Tidy up scope displayCliff Click2026-09-221-1/+1
|
* Add shared graph viewer to all chaptersCliff Click2026-09-2239-1046/+155
|
* move the graph visualizer into shared codeCliff Click2026-09-217-2269/+88
|
* Final reg-alloc across chapters cleanupCliff Click2026-09-2013-51/+140
|
* Popular use grouping for RegAllocCliff Click2026-09-205-18/+112
| | | | Fix arm BL encodings; ADD/SUB with reversed sign.
* Add back copy coaleascing in ch21Cliff Click2026-09-2019-1048/+1630
| | | | Minor arm encoding fix.
* Unify GCM across chaptersCliff Click2026-09-2011-113/+137
| | | | | | Remove the _anti field. Remove the isPinned() call. Add a copyEmpty call.
* Unify mixed-return checking and resultsCliff Click2026-09-1914-48/+90
| | | | Unify dominator caching.
* Fix ch21 MulIX86 encodingCliff Click2026-09-191-5/+31
|
* Use isDead() instead of checking null inputsCliff Click2026-09-191-1/+1
|
* Fixed st8 on arm/risc evalsCliff Click2026-09-193-2/+30
|
* debug printers no longer call self-optimizing accessorsCliff Click2026-09-1915-15/+196
|
* Handle double-negation preserving not-null knowledgeCliff Click2026-09-193-3/+61
|
* Backport string escapes and many op-assignCliff Click2026-09-172-5/+111
|
* Backport x86 Not encodingCliff Click2026-09-172-10/+72
|
* x86 mul reg reg encoding fixCliff Click2026-09-172-3/+2
|
* Back point cmpmem encodingCliff Click2026-09-172-1/+34
|
* Get makefiles and fuzzer testing uniform across chaptersCliff Click2026-09-173-7/+36
|
* Fix stale copy-pasted comment on BoolNode's phiCon call (#249)Symious2026-09-091-3/+3
| | | | | | | | | | | | | | | | | | The three comment lines above `AddNode.phiCon(this, ...)` in BoolNode were copy-pasted from MulNode and never adapted: they use `*` as the operator and describe the rotated shape `(x * (phi cons)) * con`. For BoolNode neither is right. The operator is a compare, and in chapters 6-9 `rotate` is hard-coded `false`, so the rotated shape is never matched; the shapes actually handled are `(phi cons) cmp con` and `(phi cons) cmp (phi cons)`. Reword the comment accordingly, and in chapters 6-9 add a line noting why rotate is off. Chapters 10-25 pass `this instanceof EQ`, so no such claim is made there. Comment-only change; no code is touched. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
* Move `addUse()` return statement to `keep()` (#243)Hsiang-Ying Fu2026-07-031-7/+4
|