aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2022-04-26 12:41:41 +0100
committerFlorian Hahn <flo@fhahn.com>2022-04-26 12:41:41 +0100
commit857c612d899f271402470d4026d2e3be1dce53a4 (patch)
treea4a740480b150c9c4cff671c4df7881f326b1370 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent5b3ca24a35e91bf9c19af856e7f92c69b17f989e (diff)
downloadllvm-857c612d899f271402470d4026d2e3be1dce53a4.zip
llvm-857c612d899f271402470d4026d2e3be1dce53a4.tar.gz
llvm-857c612d899f271402470d4026d2e3be1dce53a4.tar.bz2
[IPSCCP] Support unfeasible default dests for switch.
At the moment, unfeasible default destinations are not handled properly in removeNonFeasibleEdges. So far, only unfeasible cases are removed, but later code expects unreachable blocks to have no predecessors. This is causing the crash reported in PR49573. If the default destination is unfeasible it won't be executed. Create a new unreachable block on demand and use that as default destination. Note that at the moment this only is relevant for cases where resolvedUndefsIn marks the first case as executable. Regular switch handling has a FIXME/TODO to support determining whether the default case is feasible or not. Fixes #48917. Differential Revision: https://reviews.llvm.org/D113497
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions