D87614 fixed a bug about constant removal in negation. But after sanitizing check I found there's still some issue about it so it's reverted.
Temporary nodes will be removed if useless in negation. Before the removal, they'd be checked if any other nodes used it. So the removal was moved after getNode. However in rare cases the node to be removed is the same as result of getNode. We missed that.
The part is fragile, so we need to be careful about it..