llvm-reduce: Don't turn switches into returns
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 19 Oct 2022 20:10:41 +0000 (13:10 -0700)
committerMatt Arsenault <arsenm2@gmail.com>
Sat, 29 Oct 2022 00:07:26 +0000 (17:07 -0700)
commitbc405e37ee96092b2b6a0968e777a17da6c9000a
tree07e5aa3759b4be1dfa9620ad0065b9414c00b38e
parentfd35e1506011fca925661312315b14f169a2e82a
llvm-reduce: Don't turn switches into returns

Re-use one of the existing successors as the new default.
This helps with a future patch to fix handling of unreachable
blocks.
llvm/test/tools/llvm-reduce/remove-bb-switch-default.ll [new file with mode: 0644]
llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp