tcg/optimize: prefer the "op a, a, b" form for commutative ops