pub fn optimize_stack_ops(ops: &[StackOp]) -> Vec<StackOp>
Apply peephole optimization to a list of stack ops.