From ffe6bf7b9bcbee65080e0c2d37c702dd912761e8 Mon Sep 17 00:00:00 2001 From: Roman Leshchinskiy Date: Mon, 16 Jul 2007 06:35:48 +0000 Subject: [PATCH] Fix bug in vectorisation --- compiler/vectorise/Vectorise.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/vectorise/Vectorise.hs b/compiler/vectorise/Vectorise.hs index a51f1a1..166eae6 100644 --- a/compiler/vectorise/Vectorise.hs +++ b/compiler/vectorise/Vectorise.hs @@ -83,14 +83,12 @@ vectTopBind b@(Rec bs) vectTopBinder :: Var -> VM Var vectTopBinder var = do - vty <- liftM (mkForAllTys tyvars) $ vectType mono_ty + vty <- vectType (idType var) name <- cloneName mkVectOcc (getName var) let var' | isExportedId var = Id.mkExportedLocalId name vty | otherwise = Id.mkLocalId name vty defGlobalVar var var' return var' - where - (tyvars, mono_ty) = splitForAllTys (idType var) vectTopRhs :: CoreExpr -> VM CoreExpr vectTopRhs = liftM fst . closedV . vectPolyExpr (panic "Empty lifting context") . freeVars -- 1.7.10.4