1
0
mirror of https://github.com/golang/go synced 2024-11-22 14:44:50 -07:00
go/misc
Keith Randall 2034fbab5b cmd/compile: use existing instructions instead of nops for inline marks
Instead of always inserting a nop to use as the target of an inline
mark, see if we can instead find an instruction we're issuing anyway
with the correct line number, and use that instruction. That way, we
don't need to issue a nop.

Makes cmd/go 0.3% smaller.

Update #29571

Change-Id: If6cfc93ab3352ec2c6e0878f8074a3bf0786b2f8
Reviewed-on: https://go-review.googlesource.com/c/go/+/158021
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
2019-03-25 16:49:29 +00:00
..
android misc/android: pass on GOPROXY to device environment 2019-03-21 16:15:47 +00:00
arm
cgo cmd/compile: use existing instructions instead of nops for inline marks 2019-03-25 16:49:29 +00:00
chrome/gophertool
ios misc/ios: don't override GOCACHE on the device 2019-03-21 16:24:05 +00:00
linkcheck
nacl cmd: refresh cmd/vendor to match 'go mod vendor' 2019-03-11 20:27:03 +00:00
reboot cmd/dist: add a test in misc/reboot to verify that the toolchain can self-bootstrap 2019-03-13 21:16:24 +00:00
swig
trace misc/trace: update trace_viewer_full.html 2018-04-26 20:26:23 +00:00
wasm misc/wasm: exit with code 1 if WebAssembly.instantiate fails 2019-03-25 07:55:12 +00:00
benchcmp
editors
go.mod misc: add go.mod file 2019-02-27 17:47:31 +00:00