[project @ 2004-09-15 11:45:24 by simonmar]
authorsimonmar <unknown>
Wed, 15 Sep 2004 11:45:24 +0000 (11:45 +0000)
committersimonmar <unknown>
Wed, 15 Sep 2004 11:45:24 +0000 (11:45 +0000)
commitf220cc512fdc7f885e60d656ba7ba0d9f2e67611
tree31496042cfca9d0649eb4bdd1e49be0be886e43f
parentf19e3063d8c376255bc2749af2f31d35308d8da8
[project @ 2004-09-15 11:45:24 by simonmar]
Add a couple of cases to mk_switch to catch the case when we have a
tag range that has a lot of default cases at either end, and we're not
using a single switch.  In situations like this we want to eliminate
the default cases with an if-statement, before dealing with the rest
of the branches, which might then be suitable for a switch.

Also, ignore empty tag slots at either end of the range if there is no
default case.

This might work around a gcc 2.95 bug that we tickled with the
code being generated before.
ghc/compiler/codeGen/CgUtils.hs