]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: better copying
authorKeith Randall <khr@golang.org>
Thu, 22 Oct 2015 00:18:07 +0000 (17:18 -0700)
committerKeith Randall <khr@golang.org>
Tue, 27 Oct 2015 04:02:19 +0000 (04:02 +0000)
commit10462eb30f60c140bd3ab524272488f9e349335d
tree247d41bf149cf8362b8b4d547f81173c22440135
parent31115a5c98935b5dee2de73b991bc391141dfb9d
[dev.ssa] cmd/compile: better copying

Replace REP MOVSB with all the copying techniques used by the
old compiler.  Copy in chunks, DUFFCOPY, etc.

Introduces MOVO opcodes and an Int128 type to move around
16 bytes at a time.

Change-Id: I1e73e68ca1d8b3dd58bb4af2f4c9e5d9bf13a502
Reviewed-on: https://go-review.googlesource.com/16174
Reviewed-by: Todd Neal <todd@tneal.org>
Run-TryBot: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/ssa_test.go
src/cmd/compile/internal/gc/testdata/copy_ssa.go [new file with mode: 0644]
src/cmd/compile/internal/gc/testdata/gen/copyGen.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/gen/rulegen.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteAMD64.go
src/cmd/compile/internal/ssa/type.go