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

Fix bug in case vectorisation

parent 66110b25
......@@ -435,7 +435,9 @@ packLiftingContext len shape tag fvs res_ty p
lc_var <- builtin liftingContext
localV $
do
bnds <- mapM (packFreeVar (Var lc_var) (Var sel_var)) (varSetElems fvs)
bnds <- mapM (packFreeVar (Var lc_var) (Var sel_var))
. filter isLocalId
$ varSetElems fvs
(vexpr, lexpr) <- p
return (vexpr, Let (NonRec sel_var sel_expr)
$ Case len lc_var res_ty [(DEFAULT, [], lexpr)])
......
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