]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: deduplicate OpArg's across types
authorCherry Zhang <cherryyz@google.com>
Wed, 31 Mar 2021 16:41:20 +0000 (12:41 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 31 Mar 2021 20:21:57 +0000 (20:21 +0000)
commit5d6581d74796ac748441c94e84eefdaf338d266c
tree3dd34175d091279046ec7a7ad175cc109fcf0266
parent4acefa07b1499b063e1ff63c9d4cab7b7f8d49a2
cmd/compile: deduplicate OpArg's across types

For in-register arguments, it must have only a single copy of it
present in the function. If there are multiple copies, it confuses
the register allocator, as they are in the same register.

Change-Id: I55cb06746f08aa7c9168026d0f411bce0a9f93f4
Reviewed-on: https://go-review.googlesource.com/c/go/+/306330
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/expand_calls.go
test/abi/defer_aggregate.go [new file with mode: 0644]