X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fcmm%2FCmmCommonBlockElimZ.hs;h=90e70080f2f54d5293d2b8e70b9fd420925256ae;hp=4c144cf63cb925747acf9f04c6c894f3757d0ad9;hb=1e50fd4185479a62e02d987bdfcb1c62712859ca;hpb=52cacd61834e6f448b8904bfa52c4a5a402e8698 diff --git a/compiler/cmm/CmmCommonBlockElimZ.hs b/compiler/cmm/CmmCommonBlockElimZ.hs index 4c144cf..90e7008 100644 --- a/compiler/cmm/CmmCommonBlockElimZ.hs +++ b/compiler/cmm/CmmCommonBlockElimZ.hs @@ -11,10 +11,10 @@ import ZipCfg import ZipCfgCmmRep import Data.Bits +import qualified Data.List as List import Data.Word import FastString -import List hiding (iterate) -import Monad +import Control.Monad import Outputable import UniqFM import Unique @@ -56,7 +56,7 @@ type State = (UniqFM [CmmBlock], BidMap) common_block :: (Outputable h, Uniquable h) => State -> (h, CmmBlock) -> (Bool, State) common_block (bmap, subst) (hash, b) = case lookupUFM bmap hash of - Just bs -> case (find (eqBlockBodyWith (eqBid subst) b) bs, + Just bs -> case (List.find (eqBlockBodyWith (eqBid subst) b) bs, lookupBlockEnv subst bid) of (Just b', Nothing) -> addSubst b' (Just b', Just b'') | blockId b' /= b'' -> addSubst b'