aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2021-01-12 00:21:25 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2021-01-12 02:09:47 +0300
commitf9ba34770638389ee9b251f6ab801c7411601c77 (patch)
tree3b9fb064cf21541af574f1911da1e24259766e2a /clang/lib/Frontend/CompilerInvocation.cpp
parentc0de0a1b72c08783141c430b583e04e5107ebc0a (diff)
downloadllvm-f9ba34770638389ee9b251f6ab801c7411601c77.zip
llvm-f9ba34770638389ee9b251f6ab801c7411601c77.tar.gz
llvm-f9ba34770638389ee9b251f6ab801c7411601c77.tar.bz2
[SimplifyCFG] FoldValueComparisonIntoPredecessors(): don't insert a DomTree edge if it already exists
When we are adding edges to the terminator and potentially turning it into a switch (if it wasn't already), it is possible that the case we're adding will share it's destination with one of the preexisting cases, in which case there is no domtree 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.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions