This change is an adapted version of Daniel's "Fix PR 24415 (at least), by
making our post-dominator tree behavior sane." patch, which ensures that we do not loose existing post-dominance information and can consequently correctly detect SESE regions that contain non-reverse reachable infinite loops.
To remain consistent we handle unreachable() basic blocks the same way as
infinite loops.
This is a proof-of-concept patch used in the discussion on how to properly
complete the post-dominator tree to include reverse unreachable nodes.