Add instructions to fold unary and binary instructions.