projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generate lots of __inline_me during vectorisation
[ghc-hetmet.git]
/
compiler
/
vectorise
/
VectCore.hs
diff --git
a/compiler/vectorise/VectCore.hs
b/compiler/vectorise/VectCore.hs
index
c78f8ca
..
6be1542
100644
(file)
--- a/
compiler/vectorise/VectCore.hs
+++ b/
compiler/vectorise/VectCore.hs
@@
-8,12
+8,13
@@
module VectCore (
vVar, vType, vNote, vLet,
vLams, vLamsWithoutLC, vVarApps,
vVar, vType, vNote, vLet,
vLams, vLamsWithoutLC, vVarApps,
- vCaseDEFAULT, vCaseProd
+ vCaseDEFAULT, vCaseProd, vInlineMe
) where
#include "HsVersions.h"
import CoreSyn
) where
#include "HsVersions.h"
import CoreSyn
+import CoreUtils ( mkInlineMe )
import MkCore ( mkWildCase )
import CoreUtils ( exprType )
import DataCon ( DataCon )
import MkCore ( mkWildCase )
import CoreUtils ( exprType )
import DataCon ( DataCon )
@@
-90,3
+91,7
@@
vCaseProd (vscrut, lscrut) vty lty vdc ldc sh_bndrs bndrs
[(DataAlt ldc, sh_bndrs ++ lbndrs, lbody)])
where
(vbndrs, lbndrs) = unzip bndrs
[(DataAlt ldc, sh_bndrs ++ lbndrs, lbody)])
where
(vbndrs, lbndrs) = unzip bndrs
+
+vInlineMe :: VExpr -> VExpr
+vInlineMe (vexpr, lexpr) = (mkInlineMe vexpr, mkInlineMe lexpr)
+