Commit d4d5f8f6 authored by rl@cse.unsw.edu.au's avatar rl@cse.unsw.edu.au
Browse files

Reuse the lifting context Var

parent 29df68c2
......@@ -256,10 +256,9 @@ vectLam lc fvs bs body
buildClosures tyvars lc vvs arg_tys res_ty
. hoistPolyVExpr tyvars
$ do
new_lc <- newLocalVar FSLIT("lc") intPrimTy
(vbndrs, vbody) <- vectBndrsIn (vs ++ bs)
(vectExpr new_lc body)
return $ vLams new_lc vbndrs vbody
(vectExpr lc body)
return $ vLams lc vbndrs vbody
vectTyAppExpr :: Var -> CoreExprWithFVs -> [Type] -> VM VExpr
vectTyAppExpr lc (_, AnnVar v) tys = vectPolyVar lc v tys
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment