[project @ 2000-09-06 12:21:15 by simonmar]
authorsimonmar <unknown>
Wed, 6 Sep 2000 12:21:15 +0000 (12:21 +0000)
committersimonmar <unknown>
Wed, 6 Sep 2000 12:21:15 +0000 (12:21 +0000)
commitca3f9ad296a57c4b7c6cbd6495a6b7cbc1c65fe2
tree3355b345f501c5e7c107a13e03bf695fad8030e9
parent92b2b7bb6647a176554328ca6e02660d413d346f
[project @ 2000-09-06 12:21:15 by simonmar]
When compiling code for a case where the scrutinee is a primitve
comparison operator, we used to place the tag in a variable whose
unique was always the same: `mkPseudoUnique1 1'.  This was mostly
harmless but confused the Stix inliner in the NCG into generating
slightly less efficient code when the variable was used twice in a
basic block.

This patch fixes the problem by generating a new unique by just
changing the "tag" of an existing unique, namely the case binder.
ghc/compiler/basicTypes/Unique.lhs
ghc/compiler/codeGen/CgCase.lhs