LoopRotate manually updates the DoomTree by iterating over all predecessors of a basic block and computing the Nearest Common Dominator.
When a predecessor happens to be unreachable, DT.findNearestCommonDominator returns nullptr.
This patch teaches LoopRotate to handle this case and fixes PR33701.
In the future, LoopRotate should be taught to use the new incremental API for updating the DomTree.
What if *PI isn't reachable?