]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: regalloc enforces 2-address instructions
authorKeith Randall <khr@golang.org>
Sun, 10 Apr 2016 15:26:43 +0000 (08:26 -0700)
committerKeith Randall <khr@golang.org>
Sun, 10 Apr 2016 23:20:38 +0000 (23:20 +0000)
commit0004f34cefcdaad13a5131e3494fb2ff04877cd2
tree1b2295a8f5cbdfc39020359d7e93a21db292ca89
parent6b33b0e98e9be77d98b026ae2adf10dd71be5a1b
cmd/compile: regalloc enforces 2-address instructions

Instead of being a hint, resultInArg0 is now enforced by regalloc.
This allows us to delete all the code from amd64/ssa.go which
deals with converting from a semantically three-address instruction
into some copies plus a two-address instruction.

Change-Id: Id4f39a80be4b678718bfd42a229f9094ab6ecd7c
Reviewed-on: https://go-review.googlesource.com/21816
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/amd64/ssa.go
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/gen/main.go
src/cmd/compile/internal/ssa/op.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/regalloc.go
src/cmd/compile/internal/ssa/rewriteAMD64.go