summaryrefslogtreecommitdiff
path: root/Intermediate.hs
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-11-29 11:10:26 +0100
committertomsmeding <tom.smeding@gmail.com>2019-11-29 11:10:26 +0100
commitfe61bf61f9a1e12cd758f1e196e44d472992089f (patch)
tree778fde28dea758ac3258509cfa8202a53651f156 /Intermediate.hs
parent6958d67aa50d9dd550611e87ec83530369daddc0 (diff)
mergeBlocks should not be quadratic
Diffstat (limited to 'Intermediate.hs')
-rw-r--r--Intermediate.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Intermediate.hs b/Intermediate.hs
index 0feeb13..62a5d4a 100644
--- a/Intermediate.hs
+++ b/Intermediate.hs
@@ -51,6 +51,9 @@ data Terminator
bidOf :: BB -> Int
bidOf (BB i _ _) = i
+inssOf :: BB -> [Instruction]
+inssOf (BB _ i _) = i
+
termOf :: BB -> Terminator
termOf (BB _ _ t) = t