]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: output cost while inlining function with Debug['m'] > 1
authorTennyZhuang <zty0826@gmail.com>
Wed, 29 Jan 2020 03:47:49 +0000 (11:47 +0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 26 Feb 2020 14:44:24 +0000 (14:44 +0000)
commitee46f135a92c982d1dfcfd742729df372d70a69c
treeaf4faf99418cd6757f5ad26bea26df84ae6c2f00
parent26aadfa0442249d4b55d7135134eb7ec0a43a850
cmd/compile: output cost while inlining function with Debug['m'] > 1

The existing implementation outputs inline cost iff function cannot be inlined with Debug['m'] > 1, the cost info is also useful if the function is inlineable.

Fixes #36780

Change-Id: Ic96f6baf96aee25fb4b33d31d4d644dc2310e536
Reviewed-on: https://go-review.googlesource.com/c/go/+/216778
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/inl.go
test/fixedbugs/issue24651a.go
test/fixedbugs/issue24651b.go
test/inline_big.go