X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fvectorise%2FVectorise.hs;h=286680fa27c57b3760cc5288ad6250f158c9a46e;hb=e7eb4e16c90e7c0f17637d036879439873bec18d;hp=4e84e13579bc9f13e5a201f0c9b41d7c886d495b;hpb=df62b50deaadeab84a89b20b277dd4707f90c724;p=ghc-hetmet.git diff --git a/compiler/vectorise/Vectorise.hs b/compiler/vectorise/Vectorise.hs index 4e84e13..286680f 100644 --- a/compiler/vectorise/Vectorise.hs +++ b/compiler/vectorise/Vectorise.hs @@ -56,8 +56,10 @@ vectorise hsc_env _ _ guts vectModule :: ModGuts -> VM ModGuts vectModule guts = do + types' <- vectTypeEnv (mg_types guts) binds' <- mapM vectTopBind (mg_binds guts) - return $ guts { mg_binds = binds' } + return $ guts { mg_types = types' + , mg_binds = binds' } vectTopBind :: CoreBind -> VM CoreBind vectTopBind b@(NonRec var expr) @@ -421,7 +423,3 @@ vectTyAppExpr :: CoreExpr -> CoreExprWithFVs -> [Type] -> VM (CoreExpr, CoreExpr vectTyAppExpr lc (_, AnnVar v) tys = vectPolyVar lc v tys vectTyAppExpr lc e tys = pprPanic "vectTyAppExpr" (ppr $ deAnnotate e) --- ---------------------------------------------------------------------------- --- Types - -