]> Cypherpunks repositories - gostls13.git/commit
[dev.unified] cmd/compile: special case f(g()) calls in Unified IR
authorMatthew Dempsky <mdempsky@google.com>
Tue, 21 Jun 2022 11:41:38 +0000 (04:41 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 23 Jun 2022 21:53:38 +0000 (21:53 +0000)
commit20e1d5ac8cc269c8fc40d08e0b9e14ffe99d19d3
treed77ad61c2c6a765ad229bdc027b562c86b9f0609
parent61ae2b734cdbc0db342036a2a026fe1fccdccde3
[dev.unified] cmd/compile: special case f(g()) calls in Unified IR

For f(g()) calls where g() is multi-valued, we may need to insert
implicit conversions to convert g()'s result values to f()'s parameter
types. This CL refactors code slightly so this will be easier to
handle.

Change-Id: I3a432220dcb62daecf9a66030e8fa1f097e95f95
Reviewed-on: https://go-review.googlesource.com/c/go/+/413362
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/noder/reader.go
src/cmd/compile/internal/noder/writer.go