]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: get rid of unnecessary inline marks
authorKeith Randall <keithr@alum.mit.edu>
Tue, 2 Apr 2019 22:00:54 +0000 (15:00 -0700)
committerKeith Randall <khr@golang.org>
Mon, 8 Apr 2019 16:46:20 +0000 (16:46 +0000)
commitc46ebec322b4f61a219f73f3f0f590cf001a074d
tree4763ab89fb375a19212f78db56a942880a983e04
parent7bb8fc10331eacc34bd38dc557a3856c8923c605
cmd/compile: get rid of unnecessary inline marks

If no other instruction mentions an inline mark, we can get rid of it.
This normally happens when the inlined function is empty, or when all
of its code is folded into other instructions.

Also use consistent statement-ness for inline mark positions, so that
more of them can be removed in favor of existing instructions.

Update #29571
Fixes #31172

Change-Id: I71f84d355101f37a27960d9e8528f42f92767496
Reviewed-on: https://go-review.googlesource.com/c/go/+/170445
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/inl.go
src/cmd/compile/internal/ssa/deadcode.go