Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
GHC
Commits
da7b51d8
Commit
da7b51d8
authored
2 years ago
by
Ben Gamari
Committed by
Marge Bot
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cmm: Introduce blockConcat
parent
75855643
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compiler/GHC/Cmm/ContFlowOpt.hs
+1
-1
1 addition, 1 deletion
compiler/GHC/Cmm/ContFlowOpt.hs
compiler/GHC/Cmm/Dataflow/Block.hs
+3
-0
3 additions, 0 deletions
compiler/GHC/Cmm/Dataflow/Block.hs
with
4 additions
and
1 deletion
compiler/GHC/Cmm/ContFlowOpt.hs
+
1
−
1
View file @
da7b51d8
...
...
@@ -10,7 +10,7 @@ where
import
GHC.Prelude
hiding
(
succ
,
unzip
,
zip
)
import
GHC.Cmm.Dataflow.Block
import
GHC.Cmm.Dataflow.Block
hiding
(
blockConcat
)
import
GHC.Cmm.Dataflow.Collections
import
GHC.Cmm.Dataflow.Graph
import
GHC.Cmm.Dataflow.Label
...
...
This diff is collapsed.
Click to expand it.
compiler/GHC/Cmm/Dataflow/Block.hs
+
3
−
0
View file @
da7b51d8
...
...
@@ -14,6 +14,7 @@ module GHC.Cmm.Dataflow.Block
,
IndexedCO
,
Block
(
..
)
,
blockAppend
,
blockConcat
,
blockCons
,
blockFromList
,
blockJoin
...
...
@@ -136,6 +137,8 @@ blockJoin f b t = BlockCC f b t
blockAppend
::
Block
n
e
O
->
Block
n
O
x
->
Block
n
e
x
blockAppend
=
cat
blockConcat
::
[
Block
n
O
O
]
->
Block
n
O
O
blockConcat
=
foldr
blockAppend
emptyBlock
-- Taking apart
...
...
This diff is collapsed.
Click to expand it.
Ben Gamari
@bgamari
mentioned in commit
aa422c71
·
2 years ago
mentioned in commit
aa422c71
mentioned in commit aa422c7127efd5a9da40a4bd53806942f678a5c2
Toggle commit list
Ben Gamari
@bgamari
mentioned in commit
267e23ee
·
2 years ago
mentioned in commit
267e23ee
mentioned in commit 267e23eefdae24968318651893a33d27e4577609
Toggle commit list
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment