]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: extract function for splitting up x:(Foo) in rewrite rule fragments
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 22 Jan 2020 05:44:54 +0000 (21:44 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 21 Feb 2020 01:48:01 +0000 (01:48 +0000)
commit1bc116b73ced8ec1ddc46f59acc75c89e5642607
treeb3c49143ae7c32a69c792564f35bc3fa5cef050f
parenta3f234c7060b76a4397c2c38dc778a1f82d7fa17
cmd/compile: extract function for splitting up x:(Foo) in rewrite rule fragments

We had three implementations.

Refactor, and document the shared implementation.

While we're here, improve the docs for func unbalanced.

Change-Id: I612cce79de15a864247afe377d3739d04a56b9bc
Reviewed-on: https://go-review.googlesource.com/c/go/+/216219
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
src/cmd/compile/internal/ssa/gen/rulegen.go