]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: add max arg length to opcodes
authorTodd Neal <todd@tneal.org>
Sat, 27 Feb 2016 14:04:48 +0000 (08:04 -0600)
committerTodd Neal <todd@tneal.org>
Sun, 28 Feb 2016 14:50:19 +0000 (14:50 +0000)
commit4e95dfed0197ee6fdf96dc1aa632297a28a1cd95
tree6a0a16d82b4dff48a9e30d1de4e8c3911b9c6dce
parent91f69c675de947e169ebec60b68a752e3ccc6912
[dev.ssa] cmd/compile: add max arg length to opcodes

Add the max arg length to opcodes and use it in zcse.  Doesn't affect
speed, but allows better checking in checkFunc and removes the need
to keep a list of zero arg opcodes up to date.

Change-Id: I157c6587154604119720ec6228b767b6e52bb5c7
Reviewed-on: https://go-review.googlesource.com/19994
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Todd Neal <todd@tneal.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/ssa/check.go
src/cmd/compile/internal/ssa/fuse_test.go
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/gen/genericOps.go
src/cmd/compile/internal/ssa/gen/main.go
src/cmd/compile/internal/ssa/gen/rulegen.go
src/cmd/compile/internal/ssa/nilcheck_test.go
src/cmd/compile/internal/ssa/op.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/zcse.go