projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17f7728
)
Number data constructors from 0 when vectorising
author
Roman Leshchinskiy
<rl@cse.unsw.edu.au>
Fri, 31 Aug 2007 03:25:28 +0000
(
03:25
+0000)
committer
Roman Leshchinskiy
<rl@cse.unsw.edu.au>
Fri, 31 Aug 2007 03:25:28 +0000
(
03:25
+0000)
compiler/vectorise/VectUtils.hs
patch
|
blob
|
history
diff --git
a/compiler/vectorise/VectUtils.hs
b/compiler/vectorise/VectUtils.hs
index
958c5e6
..
1c72bb7
100644
(file)
--- a/
compiler/vectorise/VectUtils.hs
+++ b/
compiler/vectorise/VectUtils.hs
@@
-68,7
+68,7
@@
isAnnTypeArg (_, AnnType t) = True
isAnnTypeArg _ = False
mkDataConTag :: DataCon -> CoreExpr
-mkDataConTag = mkIntLitInt . dataConTag
+mkDataConTag con = mkIntLitInt (dataConTag con - fIRST_TAG)
splitUnTy :: String -> Name -> Type -> Type
splitUnTy s name ty