Skip to main content

Module peephole

Module peephole 

Source
Expand description

Peephole optimizations applied during translation.

These fire when abstract interpretation has proven one or more operands are constant, replacing expensive opaque builtins (DIV, MOD, SDIV, SMOD, ADDMOD, MULMOD, EXP) with native LLVM operations that it can optimize further (e.g. pow2 udiv โ†’ lshr, pow2 urem โ†’ and).

Constantsยง

INT_MIN ๐Ÿ”’
i256 INT_MIN: 1 << 255.