]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove AUNDEF opcode
authorKeith Randall <keithr@alum.mit.edu>
Sat, 6 Apr 2019 19:42:51 +0000 (12:42 -0700)
committerKeith Randall <khr@golang.org>
Sun, 7 Apr 2019 01:15:28 +0000 (01:15 +0000)
commitad6c691542e2d842c90e2f7870021d16ffa71878
treeac7628dd3bd5c0d47c778a22eb6c8340e8041176
parentcb6646234cb6565d19d9efea987c8d8fc9be5c31
cmd/compile: remove AUNDEF opcode

This opcode was only used to mark unreachable code for plive to use.
plive now uses the SSA representation, so it knows locations are
unreachable because they are ends of Exit blocks. It doesn't need
these opcodes any more.

These opcodes actually used space in the binary, 2 bytes per undef
on x86 and more for other archs.

Makes the amd64 go binary 0.2% smaller.

Change-Id: I64c84c35db7c7949617a3a5830f09c8e5fcd2620
Reviewed-on: https://go-review.googlesource.com/c/go/+/171058
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/amd64/ssa.go
src/cmd/compile/internal/arm/ssa.go
src/cmd/compile/internal/arm64/ssa.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/mips/ssa.go
src/cmd/compile/internal/mips64/ssa.go
src/cmd/compile/internal/ppc64/ssa.go
src/cmd/compile/internal/s390x/ssa.go
src/cmd/compile/internal/wasm/ssa.go
src/cmd/compile/internal/x86/ssa.go