Add a minor optimization: if we haven't changed the operands of an