[NFCI] SimplifyCFG: switch to non-permissive DomTree updates, where possible
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 4 Jan 2021 13:59:45 +0000 (16:59 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 4 Jan 2021 22:26:36 +0000 (01:26 +0300)
commit3fb57222c4c0db02f13f32579fb83d0d488becad
tree952c596bda3bf94c03c45de6f884da076bbce4d3
parentb4f519bddda853443405d21728154c481837e18b
[NFCI] SimplifyCFG: switch to non-permissive DomTree updates, where possible

Notably, this doesn't switch *every* case, remaining cases
don't actually pass sanity checks in non-permissve mode,
and therefore require further analysis.

Note that SimplifyCFG still defaults to not preserving DomTree by default,
so this is effectively a NFC change.
llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
llvm/lib/Transforms/Utils/SimplifyCFG.cpp