A toolkit to optimize the Baf IR. Includes a store/load optimizer for eliminating redundent store and load instructions, as well as peepholes and the infrastructure required to add new ones.