diff options
author | Keith Randall <keithr@alum.mit.edu> | 2019-04-06 12:42:51 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2019-04-07 01:15:28 +0000 |
commit | ad6c691542e2d842c90e2f7870021d16ffa71878 (patch) | |
tree | ac7628dd3bd5c0d47c778a22eb6c8340e8041176 /src/cmd/compile/internal/arm | |
parent | cb6646234cb6565d19d9efea987c8d8fc9be5c31 (diff) | |
download | go-ad6c691542e2d842c90e2f7870021d16ffa71878.tar.gz go-ad6c691542e2d842c90e2f7870021d16ffa71878.zip |
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>
Diffstat (limited to 'src/cmd/compile/internal/arm')
-rw-r--r-- | src/cmd/compile/internal/arm/ssa.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/arm/ssa.go b/src/cmd/compile/internal/arm/ssa.go index 8af6b1e6ed..ee9c9f1c3f 100644 --- a/src/cmd/compile/internal/arm/ssa.go +++ b/src/cmd/compile/internal/arm/ssa.go @@ -929,7 +929,6 @@ func ssaGenBlock(s *gc.SSAGenState, b, next *ssa.Block) { } case ssa.BlockExit: - s.Prog(obj.AUNDEF) // tell plive.go that we never reach here case ssa.BlockRet: s.Prog(obj.ARET) |