Unique: Simplify encoding of sum uniques
authorBen Gamari <bgamari.foss@gmail.com>
Fri, 14 Oct 2016 01:52:57 +0000 (21:52 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 14 Oct 2016 01:52:58 +0000 (21:52 -0400)
commit1cccb646e2e4bcf3bbb1f2ad01737f7e745b5f1b
tree83bf5a82cb7c4f067738d39203339a8834a2fb67
parent015e9e3d97b6826262c25a6e0504e42d49454bef
Unique: Simplify encoding of sum uniques

The previous encoding was entropically a bit better, but harder to
encode and decode. Now we just split up the integer part of the unique
into a bitfield.

Test Plan: Validate

Reviewers: austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2468
compiler/basicTypes/Unique.hs