Add and use DominatorTreeBase::findNearestCommonDominator().