]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: mark MOVQconvert as resultInArg0 on x86 architectures
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 23 Aug 2017 23:46:00 +0000 (16:46 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 24 Aug 2017 16:40:38 +0000 (16:40 +0000)
commit18b48afec9be0a1da4b23bebace0dc9f081dcee1
treedb7dd6acbf3c98d7b19973a6978f0f48521aa623
parent83ae9b07b8a99e21a1a2d7a19b253ae01cb84f06
cmd/compile: mark MOVQconvert as resultInArg0 on x86 architectures

This prevents unnecessary reg-reg moves during pointer arithmetic.

This change reduces the size of the full hello world binary by 0.4%.

Updates #21572

Change-Id: Ia0427021e5c94545a0dbd83a6801815806e5b12d
Reviewed-on: https://go-review.googlesource.com/58371
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/386Ops.go
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/gen/main.go
src/cmd/compile/internal/ssa/opGen.go