summaryrefslogtreecommitdiff
path: root/compiler/vectorise/Vectorise/Utils
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2017-03-07 13:28:34 +0000
committerDavid Feuer <David.Feuer@gmail.com>2017-04-28 18:04:22 -0400
commit1cae73aa7a1bf934e3dcae943d0d1686e8b12c26 (patch)
tree0011f50a7330e20bb4aa4e057c157e319961ae18 /compiler/vectorise/Vectorise/Utils
parent9ac22183e405773ea7147728e593edd78f30a025 (diff)
downloadhaskell-1cae73aa7a1bf934e3dcae943d0d1686e8b12c26.tar.gz
Move dataConTagZ to DataCon
Just a simple refactoring to remove duplication
Diffstat (limited to 'compiler/vectorise/Vectorise/Utils')
-rw-r--r--compiler/vectorise/Vectorise/Utils/Base.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/vectorise/Vectorise/Utils/Base.hs b/compiler/vectorise/Vectorise/Utils/Base.hs
index 42271091d7..88058e22d9 100644
--- a/compiler/vectorise/Vectorise/Utils/Base.hs
+++ b/compiler/vectorise/Vectorise/Utils/Base.hs
@@ -4,7 +4,7 @@ module Vectorise.Utils.Base
( voidType
, newLocalVVar
- , mkDataConTag, dataConTagZ
+ , mkDataConTag
, mkWrapType
, mkClosureTypes
, mkPReprType
@@ -66,9 +66,6 @@ newLocalVVar fs vty
mkDataConTag :: DynFlags -> DataCon -> CoreExpr
mkDataConTag dflags = mkIntLitInt dflags . dataConTagZ
-dataConTagZ :: DataCon -> Int
-dataConTagZ con = dataConTag con - fIRST_TAG
-
-- Type Construction ----------------------------------------------------------