Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
fb047134
Commit
fb047134
authored
Jul 16, 2007
by
rl@cse.unsw.edu.au
Browse files
Fix bad bug in type vectorisation
parent
913c612f
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/vectorise/Vectorise.hs
View file @
fb047134
...
@@ -438,7 +438,7 @@ vectTyCon tc
...
@@ -438,7 +438,7 @@ vectTyCon tc
Nothing
->
pprTrace
"ccTyCon:"
(
ppr
tc
)
$
return
tc
Nothing
->
pprTrace
"ccTyCon:"
(
ppr
tc
)
$
return
tc
vectType
::
Type
->
VM
Type
vectType
::
Type
->
VM
Type
vectType
ty
|
Just
ty'
<-
coreView
ty
=
vectType
ty
vectType
ty
|
Just
ty'
<-
coreView
ty
=
vectType
ty
'
vectType
(
TyVarTy
tv
)
=
return
$
TyVarTy
tv
vectType
(
TyVarTy
tv
)
=
return
$
TyVarTy
tv
vectType
(
AppTy
ty1
ty2
)
=
liftM2
AppTy
(
vectType
ty1
)
(
vectType
ty2
)
vectType
(
AppTy
ty1
ty2
)
=
liftM2
AppTy
(
vectType
ty1
)
(
vectType
ty2
)
vectType
(
TyConApp
tc
tys
)
=
liftM2
TyConApp
(
vectTyCon
tc
)
(
mapM
vectType
tys
)
vectType
(
TyConApp
tc
tys
)
=
liftM2
TyConApp
(
vectTyCon
tc
)
(
mapM
vectType
tys
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment