Use findCommutedOpIndices to find the operands to commute.