implement basic (slow) replaceDominatedUsesWith