summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorklebinger.andreas@gmx.at <klebinger.andreas@gmx.at>2018-01-15 13:52:33 -0500
committerBen Gamari <ben@smart-cactus.org>2018-01-15 13:53:47 -0500
commitbc383f20ce29c5059d8c9c322246ac38bfb0c2a8 (patch)
treee8906973266e3c9a784e935be9adb8ccb5570515 /distrib
parent1bf70b2041dc2b7c89565fcb46cad8f151f96790 (diff)
downloadhaskell-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