HomePhabricator

[SimplifyCFG] switchToSelect(): don't forget to insert DomTree edge iff needed

Authored by lebedev.ri on Jan 15 2021, 9:57 AM.

Description

[SimplifyCFG] switchToSelect(): don't forget to insert DomTree edge iff needed

DestBB might or might not already be a successor of SelectBB,
and it wasn't we need to ensure that we record the fact in DomTree.

The testcase used to crash in lazy domtree updater mode + non-per-function
domtree validity checks disabled.

Details

Committed
lebedev.riJan 15 2021, 12:35 PM
Parents
rGc6654a4cdab4: [SimplifyCFG][BasicBlockUtils] Port SplitBlockPredecessors…
Branches
Unknown
Tags
Unknown