projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8adf1ec
)
Pass correct dictionary to lengthPA for single-element environments
author
Roman Leshchinskiy
<rl@cse.unsw.edu.au>
Mon, 16 Jul 2007 11:08:19 +0000
(11:08 +0000)
committer
Roman Leshchinskiy
<rl@cse.unsw.edu.au>
Mon, 16 Jul 2007 11:08:19 +0000
(11:08 +0000)
compiler/vectorise/Vectorise.hs
patch
|
blob
|
history
diff --git
a/compiler/vectorise/Vectorise.hs
b/compiler/vectorise/Vectorise.hs
index
c974c20
..
50e5923
100644
(file)
--- a/
compiler/vectorise/Vectorise.hs
+++ b/
compiler/vectorise/Vectorise.hs
@@
-398,8
+398,9
@@
mkClosureMonoFns info arg body
bind_lenv lenv lbody lc_bndr [lbndr]
= do
lengthPA <- builtin lengthPAVar
+ pa_dict <- paDictOfType vty
return . Let (NonRec lbndr lenv)
- $ Case (mkApps (Var lengthPA) [Type vty, (Var lbndr)])
+ $ Case (mkApps (Var lengthPA) [Type vty, pa_dict, (Var lbndr)])
lc_bndr
(exprType lbody)
[(DEFAULT, [], lbody)]