Stencil Selection

Simple: dense table dispatch

Peephole: ML pattern matching

  1. Compiling Pattern Matching to Good Decision Trees

  2. "How to compile pattern matching" by Jules Jacobs 2021

  3. https://github.com/yorickpeterse/pattern-matching-in-rust/tree/main/jacobs2021

Advanced BURG trees

LLVM: SelectionDAG