HomePhabricator

[SimplifyCFG] ReduceSwitchRange: Improve on the case where the SubThreshold…

Description

[SimplifyCFG] ReduceSwitchRange: Improve on the case where the SubThreshold doesn't trigger

Details

Committed
shawnlMay 26 2019, 6:55 AM
Parents
rL361727: [SimplifyCFG] Run ReduceSwitchRange unconditionally, generalize
Branches
Unknown
Tags
Unknown

Event Timeline

nikic added a subscriber: nikic.May 26 2019, 7:36 AM

I'm not sure which of the switch related commits caused this, but the following tests are failing on master:

LLVM :: Transforms/SimplifyCFG/ARM/switch-to-lookup-table.ll
LLVM :: Transforms/SimplifyCFG/CoveredLookupTable.ll
LLVM :: Transforms/SimplifyCFG/X86/disable-lookup-table.ll
LLVM :: Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll

When I regenerate generate the ARM tests the diffs looks suspicious (no difference between enabled & disabled anymore).