1
0
mirror of https://github.com/golang/go synced 2024-11-11 21:40:21 -07:00
go/misc/cgo
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
..
errors misc/cgo/errors: fix tests in module mode 2019-02-22 17:24:25 +00:00
fortran cmd/compile, misc/cgo: fix fortran tests on aix/ppc64 2019-03-22 13:52:59 +00:00
gmp all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
life misc/android: enable many more tests on GOOS=android 2019-03-08 23:32:03 +00:00
nocgo cmd/ld: really import runtime/cgo for external link 2014-05-20 21:36:50 -07:00
stdio misc/android: enable many more tests on GOOS=android 2019-03-08 23:32:03 +00:00
test cmd/compile: use existing instructions instead of nops for inline marks 2019-03-25 16:49:29 +00:00
testasan runtime: more flexible heap memory mapping on 64-bits 2013-06-12 18:47:16 +04:00
testcarchive misc: fix typos in various docs 2019-03-07 07:30:06 +00:00
testcshared misc/cgo/testcshared: delete temporary directory in test 2019-03-01 21:33:00 +00:00
testgodefs misc/cgo/testgodefs: move source files into testdata 2019-02-26 02:44:12 +00:00
testplugin misc/cgo: gofmt testdata files 2019-03-22 07:21:24 +00:00
testsanitizers misc/cgo/testsanitizers: move test source files into testdata directory 2019-02-22 21:58:00 +00:00
testshared misc/cgo: gofmt testdata files 2019-03-22 07:21:24 +00:00
testsigfwd misc/cgo/testsigfwd: add missing return statement 2016-08-30 21:44:14 +00:00
testso cmd/dist, misc/cgo: enable tests for aix/ppc64 2019-03-20 14:38:44 +00:00
testsovar cmd/dist, misc/cgo: enable tests for aix/ppc64 2019-03-20 14:38:44 +00:00
testtls all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00