Skip to content

Commit e27b78f

Browse files
committed
fixup! Add a domtree to every CFG, avoiding constructing them explicitly when needed
1 parent 761e25a commit e27b78f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

base/compiler/ssair/ir.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ struct CFG
1111
# TODO: make this O(1) instead of O(log(n_blocks))?
1212
domtree::DomTree
1313
end
14-
copy(c::CFG) = CFG(BasicBlock[copy(b) for b in c.blocks], copy(c.index))
1514

1615
function CFG(blocks::Vector{BasicBlock}, index::Vector{Int})
1716
return CFG(blocks, index, construct_domtree(blocks))

0 commit comments

Comments
 (0)