projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bugs in vectorisation of case expressions
[ghc-hetmet.git]
/
compiler
/
vectorise
/
VectType.hs
diff --git
a/compiler/vectorise/VectType.hs
b/compiler/vectorise/VectType.hs
index
9bf11e6
..
a9db43c
100644
(file)
--- a/
compiler/vectorise/VectType.hs
+++ b/
compiler/vectorise/VectType.hs
@@
-1022,7
+1022,7
@@
fromVect (FunTy arg_ty res_ty) expr
vres_ty <- vectType res_ty
apply <- builtin applyClosureVar
body <- fromVect res_ty
vres_ty <- vectType res_ty
apply <- builtin applyClosureVar
body <- fromVect res_ty
- $ Var apply `mkTyApps` [arg_ty, res_ty] `mkApps` [expr, Var arg]
+ $ Var apply `mkTyApps` [varg_ty, vres_ty] `mkApps` [expr, varg]
return $ Lam arg body
fromVect ty expr
= identityConv ty >> return expr
return $ Lam arg body
fromVect ty expr
= identityConv ty >> return expr