Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
942e4858
Commit
942e4858
authored
Dec 05, 2007
by
rl@cse.unsw.edu.au
Browse files
Vectorise case of unit correctly
parent
3dca032c
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/vectorise/Vectorise.hs
View file @
942e4858
...
...
@@ -337,6 +337,14 @@ vectAlgCase tycon ty_args scrut bndr ty [(DEFAULT, [], body)]
(
vbndr
,
vbody
)
<-
vectBndrIn
bndr
(
vectExpr
body
)
return
$
vCaseDEFAULT
vscrut
vbndr
vty
lty
vbody
vectAlgCase
tycon
ty_args
scrut
bndr
ty
[(
DataAlt
dc
,
[]
,
body
)]
=
do
vscrut
<-
vectExpr
scrut
vty
<-
vectType
ty
lty
<-
mkPArrayType
vty
(
vbndr
,
vbody
)
<-
vectBndrIn
bndr
(
vectExpr
body
)
return
$
vCaseDEFAULT
vscrut
vbndr
vty
lty
vbody
vectAlgCase
tycon
ty_args
scrut
bndr
ty
[(
DataAlt
dc
,
bndrs
,
body
)]
=
do
vect_tc
<-
maybeV
(
lookupTyCon
tycon
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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