acvm::compiler::optimizers

Module unused_memory

Source

Structsยง

  • UnusedMemoryOptimizer will remove initializations of memory blocks which are unused. A first pass collects all memory blocks which are initialized but discards the ones which are used in a MemoryOp or as input to a BrilligCall. The second pass removes the opcodes tagged as unused by the first pass.