diff options
author | Russ Cox <rsc@golang.org> | 2020-12-11 12:55:14 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2020-12-17 03:50:15 +0000 |
commit | 7fde0d2b507b989cb9a23d6dbae9acaa13328c53 (patch) | |
tree | 5bc2ab491f313435ecb57d64b7e2942de73c8104 /src/cmd/compile/internal/ir/node.go | |
parent | 114af2a04408d0480bb3e9253bf15aae6b7ed23e (diff) | |
download | go-7fde0d2b507b989cb9a23d6dbae9acaa13328c53.tar.gz go-7fde0d2b507b989cb9a23d6dbae9acaa13328c53.zip |
[dev.regabi] cmd/compile: remove use of Initorder, Offset Node fields for initorder
The initorder pass is already making heavy use of maps,
and it is concerned with relatively few nodes (only the assignments
in package-level variable declarations). The tracking of init order
for these nodes can be done with another map instead of storing
the bits directly in the Node representations.
This will let us drop Offset_ from AssignStmt and AssignListStmt
and drop Initorder from all nodes.
Passes buildall w/ toolstash -cmp.
Change-Id: I151c64e84670292c2004da4e8e3d0660a88e3df3
Reviewed-on: https://go-review.googlesource.com/c/go/+/277917
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ir/node.go')
-rw-r--r-- | src/cmd/compile/internal/ir/node.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/ir/node.go b/src/cmd/compile/internal/ir/node.go index ccf3671085b..0e73731070f 100644 --- a/src/cmd/compile/internal/ir/node.go +++ b/src/cmd/compile/internal/ir/node.go @@ -102,8 +102,6 @@ type Node interface { SetBounded(x bool) Typecheck() uint8 SetTypecheck(x uint8) - Initorder() uint8 - SetInitorder(x uint8) NonNil() bool MarkNonNil() HasCall() bool |