]> Cypherpunks repositories - gostls13.git/commit
[dev.regabi] cmd/compile: use ir.EditChildren for inline rewriting
authorRuss Cox <rsc@golang.org>
Thu, 3 Dec 2020 19:06:41 +0000 (14:06 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 4 Dec 2020 16:52:51 +0000 (16:52 +0000)
commitd855b30fe48fe108921733c8d86e42063a5c601f
tree850d580ad6069388954b47baceb40b3abc756488
parentb9df26d7a86e0b402f4ae5fd0cb44bab46b6331e
[dev.regabi] cmd/compile: use ir.EditChildren for inline rewriting

This CL rephrases the general inlining rewriter in terms of ir.EditChildren.
It is the final part of the code that was processing arbitrary nodes using
Left, SetLeft, and so on. After this CL, there should be none left except
for the implementations of DoChildren and EditChildren, which fall next.

Passes buildall w/ toolstash -cmp.

Change-Id: I9c36053360cd040710716f0b39397a80114be713
Reviewed-on: https://go-review.googlesource.com/c/go/+/275373
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/escape.go
src/cmd/compile/internal/gc/inl.go
src/cmd/compile/internal/gc/typecheck.go
src/cmd/compile/internal/ir/expr.go