[commit: packages/hoopl] master: Improve fix to handle irreducible CFGs. (ef24795)
git at git.haskell.org
git at git.haskell.org
Mon Apr 17 21:37:48 UTC 2017
- Previous message: [commit: packages/containers] changelog-foldtree, cleaned_bugfix394, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-184-generic, revert-408-bugfix_394: Merge pull request #132 from treeowl/travis-update (25c3fee)
- Next message: [commit: packages/containers] changelog-foldtree, cleaned_bugfix394, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-184-generic, revert-408-bugfix_394: Bump version number to 0.5.6.3 (fabde6b)
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Repository : ssh://git@git.haskell.org/hoopl
On branch : master
Link : http://git.haskell.org/packages/hoopl.git/commitdiff/ef24795cdc25415ffa79e8bcefe8ea1f5d6d151c
>---------------------------------------------------------------
commit ef24795cdc25415ffa79e8bcefe8ea1f5d6d151c
Author: Ben Karel <eschew at gmail.com>
Date: Sat Feb 11 16:57:12 2017 -0500
Improve fix to handle irreducible CFGs.
>---------------------------------------------------------------
ef24795cdc25415ffa79e8bcefe8ea1f5d6d151c
src/Compiler/Hoopl/Passes/Dominator.hs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/Compiler/Hoopl/Passes/Dominator.hs b/src/Compiler/Hoopl/Passes/Dominator.hs
index 7cd8b7e..2d87962 100644
--- a/src/Compiler/Hoopl/Passes/Dominator.hs
+++ b/src/Compiler/Hoopl/Passes/Dominator.hs
@@ -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
- Previous message: [commit: packages/containers] changelog-foldtree, cleaned_bugfix394, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-184-generic, revert-408-bugfix_394: Merge pull request #132 from treeowl/travis-update (25c3fee)
- Next message: [commit: packages/containers] changelog-foldtree, cleaned_bugfix394, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-184-generic, revert-408-bugfix_394: Bump version number to 0.5.6.3 (fabde6b)
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the ghc-commits
mailing list