X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fvectorise%2FVectCore.hs;h=c78f8cad16fe56c46d661a5e3cc8e90ef827e5a4;hb=b04a210e26ca57242fd052f2aa91011a80b76299;hp=de832793f654e3243486ded9dab5f79ff7ac247e;hpb=30c122df62ec75f9ed7f392f24c2925675bf1d06;p=ghc-hetmet.git diff --git a/compiler/vectorise/VectCore.hs b/compiler/vectorise/VectCore.hs index de83279..c78f8ca 100644 --- a/compiler/vectorise/VectCore.hs +++ b/compiler/vectorise/VectCore.hs @@ -14,10 +14,10 @@ module VectCore ( #include "HsVersions.h" import CoreSyn +import MkCore ( mkWildCase ) import CoreUtils ( exprType ) import DataCon ( DataCon ) import Type ( Type ) -import Id ( mkWildId ) import Var type Vect a = (a,a) @@ -84,9 +84,9 @@ vCaseProd :: VExpr -> Type -> Type -> DataCon -> DataCon -> [Var] -> [VVar] -> VExpr -> VExpr vCaseProd (vscrut, lscrut) vty lty vdc ldc sh_bndrs bndrs (vbody,lbody) - = (Case vscrut (mkWildId $ exprType vscrut) vty + = (mkWildCase vscrut (exprType vscrut) vty [(DataAlt vdc, vbndrs, vbody)], - Case lscrut (mkWildId $ exprType lscrut) lty + mkWildCase lscrut (exprType lscrut) lty [(DataAlt ldc, sh_bndrs ++ lbndrs, lbody)]) where (vbndrs, lbndrs) = unzip bndrs