Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
ffe6bf7b
Commit
ffe6bf7b
authored
Jul 16, 2007
by
rl@cse.unsw.edu.au
Browse files
Fix bug in vectorisation
parent
fb047134
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/vectorise/Vectorise.hs
View file @
ffe6bf7b
...
...
@@ -83,14 +83,12 @@ vectTopBind b@(Rec bs)
vectTopBinder
::
Var
->
VM
Var
vectTopBinder
var
=
do
vty
<-
liftM
(
mkForAllTys
tyvars
)
$
vectType
mono_ty
vty
<-
vectType
(
idType
var
)
name
<-
cloneName
mkVectOcc
(
getName
var
)
let
var'
|
isExportedId
var
=
Id
.
mkExportedLocalId
name
vty
|
otherwise
=
Id
.
mkLocalId
name
vty
defGlobalVar
var
var'
return
var'
where
(
tyvars
,
mono_ty
)
=
splitForAllTys
(
idType
var
)
vectTopRhs
::
CoreExpr
->
VM
CoreExpr
vectTopRhs
=
liftM
fst
.
closedV
.
vectPolyExpr
(
panic
"Empty lifting context"
)
.
freeVars
...
...
Write
Preview
Supports
Markdown
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