[SimplifyCFG] Teach eliminateDeadSwitchCases() to preserve DomTree, part 1
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 31 Dec 2020 22:02:06 +0000 (01:02 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Fri, 1 Jan 2021 00:25:24 +0000 (03:25 +0300)
commita815b6b2b2cc483cfe9d2b520790322a39f8d37b
treed0ff7d373af326d0886c7e5c2e99a9ae692e3ac9
parent0d2f219d4d0b4c61491508e6980055ecc241418c
[SimplifyCFG] Teach eliminateDeadSwitchCases() to preserve DomTree, part 1
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll
llvm/test/Transforms/SimplifyCFG/switch-simplify-crash.ll