Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
H
hoopl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
Packages
hoopl
Commits
ef24795c
Commit
ef24795c
authored
Feb 11, 2017
by
Ben Karel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve fix to handle irreducible CFGs.
parent
b4ed37c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/Compiler/Hoopl/Passes/Dominator.hs
src/Compiler/Hoopl/Passes/Dominator.hs
+3
-1
No files found.
src/Compiler/Hoopl/Passes/Dominator.hs
View file @
ef24795c
...
...
@@ -48,8 +48,10 @@ domLattice = addPoints "dominators" extend
extend
::
JoinFun
DPath
extend
_
(
OldFact
(
DPath
l
))
(
NewFact
(
DPath
l'
))
=
(
changeIf
(
l
`
lengthDiffers
`
j
),
DPath
j
)
where
j
=
filter
(
\
elem
->
Set
.
member
elem
common
)
l
where
lx
=
filter
(
\
elem
->
Set
.
member
elem
common
)
l
rx
=
filter
(
\
elem
->
Set
.
member
elem
common
)
l'
common
=
Set
.
intersection
(
Set
.
fromList
l
)
(
Set
.
fromList
l'
)
j
=
[
x
|
(
x
,
y
)
<-
zip
lx
rx
,
x
==
y
]
lengthDiffers
[]
[]
=
False
lengthDiffers
(
_
:
xs
)
(
_
:
ys
)
=
lengthDiffers
xs
ys
...
...
Write
Preview
Markdown
is supported
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