OSDN Git Service

[SimplifyCFG] SimplifyBranchOnICmpChain(): don't insert a DomTree edge that already...
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 11 Jan 2021 21:18:23 +0000 (00:18 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 11 Jan 2021 23:09:46 +0000 (02:09 +0300)
commitc0de0a1b72c08783141c430b583e04e5107ebc0a
treeb87b07826e3bc6f176a3601578b3431509ce2721
parentc22bc5f1f8b295674aa3a62dced8a39ad3d2aa02
[SimplifyCFG] SimplifyBranchOnICmpChain(): don't insert a DomTree edge that already exists

BB was already always branching to EdgeBB, there is no edge to add.

Indeed, this change does not have a test coverage change.
This failure has been exposed in an existing test coverage
by a follow-up patch that switches to lazy domtreeupdater mode,
and removes domtree verification from
SimplifyCFGOpt::simplifyOnce()/SimplifyCFGOpt::run(),
IOW it does not appear feasible to add dedicated test coverage here.
llvm/lib/Transforms/Utils/SimplifyCFG.cpp