[SimplifyCFG] Add switch-to-select test with two equal cases (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 4 Apr 2021 15:10:11 +0000 (17:10 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 4 Apr 2021 15:14:59 +0000 (17:14 +0200)
commit7ca168dd5adabcc01e957fb8486ddf2e22dd37d7
treeacde764a1ffcade56795b570a99ed2552fc22796
parentcb4443994e72ab524c70854dc93cd272ac1c4026
[SimplifyCFG] Add switch-to-select test with two equal cases (NFC)

We handle the case where we have two cases and a default all having
different values, but not the case where two cases happen to have
the same one.

The PhaseOrdering test is a particularly bad example where this
showed up.
llvm/test/Transforms/PhaseOrdering/partialord-ule.ll [new file with mode: 0644]
llvm/test/Transforms/SimplifyCFG/switch-to-select-two-case.ll