In some cases StructurizeCfg updates root node, but dominator info
remains unchanges, it causes crash when expensive checks are enabled.
This change fixes PR27488.
Differential D28114
[StructurizeCfg] Update dominator info. sepavloff on Dec 25 2016, 11:44 PM. Authored by
Details In some cases StructurizeCfg updates root node, but dominator info This change fixes PR27488.
Diff Detail
Event Timeline
Comment Actions I'm fairly confused. Post-dom can have multiple roots due to multiple exit blocks, but honestly, we kind of mess this up, and would likely be much better off having a single virtual root, and removing the support for multiple real roots Comment Actions Oh, forget it, i see that you are swapping the root node. This still won't work well with post-dom unless we move to a virtual root. Comment Actions Updated patch As pointed out by @hfinkel and @dberlin, this code won't work with Adding node as a new root is now implemented by a separate function A small piece of unit test was added that is similar to the operation |