diff options
author | klebinger.andreas@gmx.at <klebinger.andreas@gmx.at> | 2018-01-15 13:52:33 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-01-15 13:53:47 -0500 |
commit | bc383f20ce29c5059d8c9c322246ac38bfb0c2a8 (patch) | |
tree | e8906973266e3c9a784e935be9adb8ccb5570515 /distrib | |
parent | 1bf70b2041dc2b7c89565fcb46cad8f151f96790 (diff) | |
download | haskell-bc383f20ce29c5059d8c9c322246ac38bfb0c2a8.tar.gz |
Simplify guard in createSwitchPlan.
Given that we have two unique keys (guaranteed by Map) checking that
`|range| == 1` is faster.
The fact that `x1 == lo` and `x2 == hi` is guaranteed by mkSwitchTargets
which removes values outside of the range.
Test Plan: ci
Reviewers: bgamari, simonmar
Reviewed By: simonmar
Subscribers: rwbarton, thomie, carter
Differential Revision: https://phabricator.haskell.org/D4295
Diffstat (limited to 'distrib')
0 files changed, 0 insertions, 0 deletions