A while ago, @regehr was tooting about optimizing brainfuck, and I speculated that peeling off the first iteration of a loop might make the loop body easier to optimize: https://mastodon.social/@nelhage/113241955294210125
Today I learned that RPython/PyPy use a very similar idea to support loop optimizations in their trace optimizer: https://dl.acm.org/doi/epdf/10.1145/2480360.2384586
By peeling off a single loop iteration, the optimizer can "see" that the body proper is dominated by the first iteration, and specialize much harder.