From 8d47bf1822f7d7886ff62f6d14abe405f9f68ed7 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 1 Oct 2022 16:46:51 +0200 Subject: new move analyser2 (#20471) * produce better code for closure environment creation * new 'first write' analysis; * scope based move analyser * code cleanup Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com> --- compiler/ccgcalls.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/ccgcalls.nim') diff --git a/compiler/ccgcalls.nim b/compiler/ccgcalls.nim index ed5a5b079..81e74d089 100644 --- a/compiler/ccgcalls.nim +++ b/compiler/ccgcalls.nim @@ -313,7 +313,7 @@ proc genArgNoParam(p: BProc, n: PNode; result: var Rope; needsTmp = false) = initLocExprSingleUse(p, n, a) addRdLoc(withTmpIfNeeded(p, a, needsTmp), result) -from dfa import aliases, AliasKind +import aliasanalysis proc potentialAlias(n: PNode, potentialWrites: seq[PNode]): bool = for p in potentialWrites: -- cgit 1.4.1-2-gfad0