Changing only the opcode of a SelectionDAG node

Hello,
When going through LowerOperation hook of the TargetLowering class,
I was wondering if there is a way to manipulate the existing node and then return it, instead of creating a new one using the dag.getNode.
I am trying to replace the opcode of the node without changing anything else.
thanks!