]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: Remove unused 'NoInline' field from CallExpr stucture
authorAlexander Musman <alexander.musman@gmail.com>
Fri, 7 Mar 2025 18:49:56 +0000 (21:49 +0300)
committerCherry Mui <cherryyz@google.com>
Wed, 2 Apr 2025 12:55:35 +0000 (05:55 -0700)
Remove the 'NoInline' field from CallExpr stucture, as it's no longer
used after enabling of tail call inlining.

Change-Id: Ief3ada9938589e7a2f181582ef2758ebc4d03aad
Reviewed-on: https://go-review.googlesource.com/c/go/+/655816
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/inline/inl.go
src/cmd/compile/internal/ir/expr.go

index 07db16b280bd26ed7f1b4f19614ce285af2c3a02..e30de3d8c87d8731644b032f4c71b90cf966f8c9 100644 (file)
@@ -786,7 +786,7 @@ func inlineCallCheck(callerfn *ir.Func, call *ir.CallExpr) (bool, bool) {
        if call.Op() != ir.OCALLFUNC {
                return false, false
        }
-       if call.GoDefer || call.NoInline {
+       if call.GoDefer {
                return false, false
        }
 
index 5bd26fc14562f6b0741cff8ccb1ff480bcccaa2f..cf56515a2c164715900c989286279d13253e4387 100644 (file)
@@ -191,7 +191,6 @@ type CallExpr struct {
        KeepAlive []*Name // vars to be kept alive until call returns
        IsDDD     bool
        GoDefer   bool // whether this call is part of a go or defer statement
-       NoInline  bool // whether this call must not be inlined
 }
 
 func NewCallExpr(pos src.XPos, op Op, fun Node, args []Node) *CallExpr {