[SimplifyCFG] SimplifyCondBranchToTwoReturns(): switch to non-permissive DomTree...
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 4 Jan 2021 21:59:45 +0000 (00:59 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 4 Jan 2021 22:26:37 +0000 (01:26 +0300)
commit32c47ebef18d904445ce909e4a6922ffbfe4053f
treebf6d8e2b754eb60a89a2b4fe91f65abf24bb7445
parent110b3d7855ef71a7d43a0779b2e1c32e1a31daae
[SimplifyCFG] SimplifyCondBranchToTwoReturns(): switch to non-permissive DomTree updates

... which requires not deleting an edge that just got deleted,
because we could be dealing with a block that didn't go through
ConstantFoldTerminator() yet, and thus has a degenerate cond br
with matching true/false destinations.
llvm/lib/Transforms/Utils/SimplifyCFG.cpp