[SimplifyCFG] SwitchToLookupTable(): don't increase ret count
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 26 Jul 2021 20:28:33 +0000 (23:28 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 26 Jul 2021 20:29:55 +0000 (23:29 +0300)
commit1901c98dd81bded0b95b2a1c0de05d56c24e7408
treea3ba63d6e95c0a033ce9ed6e9e34894d38524dc4
parent08efc2e68d5f9fe522fe8d70d0bd5ddf45f78848
[SimplifyCFG] SwitchToLookupTable(): don't increase ret count

The very next SimplifyCFG pass invocation will tail-merge these two ret's
anyways, there is not much point in creating more work for ourselves.
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/PhaseOrdering/X86/simplifycfg-late.ll
llvm/test/Transforms/SimplifyCFG/Hexagon/switch-to-lookup-table.ll
llvm/test/Transforms/SimplifyCFG/X86/disable-lookup-table.ll
llvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
llvm/test/Transforms/SimplifyCFG/rangereduce.ll