Replace FiniteMap and UniqFM with counterparts from containers.
authorMilan Straka <fox@ucw.cz>
Mon, 3 May 2010 17:13:15 +0000 (17:13 +0000)
committerMilan Straka <fox@ucw.cz>
Mon, 3 May 2010 17:13:15 +0000 (17:13 +0000)
commit5ff8ce7ff0d45ce13937ad2c24a2e37ffdd2337f
treea165d6be159776b7bbe9358c73fe97451d8fc607
parent71c7067b7cc2b06265c97190e6a09c272ad7a175
Replace FiniteMap and UniqFM with counterparts from containers.

The original interfaces are kept. There is small performance improvement:
- when compiling for five nofib, we get following speedups:
    Average                -----           -2.5%
    Average                -----           -0.6%
    Average                -----           -0.5%
    Average                -----           -5.5%
    Average                -----          -10.3%
- when compiling HPC ten times, we get:
    switches                          oldmaps   newmaps
    -O -fasm                          117.402s  116.081s (98.87%)
    -O -fasm -fregs-graph             119.993s  118.735s (98.95%)
    -O -fasm -fregs-iterative         120.191s  118.607s (98.68%)
compiler/nativeGen/RegAlloc/Graph/TrivColorable.hs
compiler/utils/FiniteMap.lhs
compiler/utils/UniqFM.lhs
compiler/utils/UniqSet.lhs