]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: Allow structs to be SSAd
authorKeith Randall <khr@golang.org>
Tue, 12 Jan 2016 05:05:33 +0000 (21:05 -0800)
committerKeith Randall <khr@golang.org>
Wed, 20 Jan 2016 22:37:11 +0000 (22:37 +0000)
commita734bbc95349a487c78ff02eda07e3f219808be3
treefcd7692dd11201d31597f31c14f03efa481671c6
parentb5c5efd5de4c4668b149d1dba4d9b00c88dd0b80
[dev.ssa] cmd/compile: Allow structs to be SSAd

Break small structs up into their components so they
can be registerized.

Change StructSelect to use field indexes instead of
field offsets, as field offsets aren't unique in the
presence of zero-sized fields.

Change-Id: I2f1dc89f7fa58e1cf58aa1a32b238959d53f62e4
Reviewed-on: https://go-review.googlesource.com/18570
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/TODO
src/cmd/compile/internal/ssa/decompose.go
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/gen/genericOps.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewritegeneric.go