Revert "ARC: Analysis in one pass v2 (#17000)" (#17046)

This reverts commit 216be4060a.
This commit is contained in:
Clyybber 2021-02-15 18:31:15 +01:00 • committed by GitHub
commit 70b9e9962f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 130 additions and 147 deletions

View file

@ -298,11 +298,11 @@ proc genArgNoParam(p: BProc, n: PNode, needsTmp = false): Rope =
initLocExprSingleUse(p, n, a)
result = rdLoc(withTmpIfNeeded(p, a, needsTmp))
from dfa import aliases, AliasKind
from dfa import instrTargets, InstrTargetKind
proc potentialAlias(n: PNode, potentialWrites: seq[PNode]): bool =
for p in potentialWrites:
if p.aliases(n) != no or n.aliases(p) != no:
if instrTargets(p, n) != None:
return true
proc skipTrivialIndirections(n: PNode): PNode =