Skip to content

Commit 532e34d

Browse files
mdempskygopherbot
authored andcommitted
cmd/compile: remove -d=typecheckinl flag
This flag forced the compiler to eagerly type check all available inline function bodies, which presumably was useful in the early days of implementing inlining support. However, it shouldn't have any significance with the unified frontend, since the same code paths are used for constructing normal function bodies as for inlining. Updates #57410. Change-Id: I6842cf86bcd0fbf22ac336f2fc0b7b8fe14bccca Reviewed-on: https://go-review.googlesource.com/c/go/+/458617 Reviewed-by: Keith Randall <[email protected]> Run-TryBot: Matthew Dempsky <[email protected]> Reviewed-by: Keith Randall <[email protected]> Auto-Submit: Matthew Dempsky <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 6d4101e commit 532e34d

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

src/cmd/compile/internal/base/debug.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ type DebugFlags struct {
4646
SoftFloat int `help:"force compiler to emit soft-float code" concurrent:"ok"`
4747
SyncFrames int `help:"how many writer stack frames to include at sync points in unified export data"`
4848
TypeAssert int `help:"print information about type assertion inlining"`
49-
TypecheckInl int `help:"eager typechecking of inline function bodies" concurrent:"ok"`
5049
WB int `help:"print information about write barriers"`
5150
ABIWrap int `help:"print information about ABI wrapper generation"`
5251
MayMoreStack string `help:"call named function before all stack growth checks" concurrent:"ok"`

src/cmd/compile/internal/gc/main.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,6 @@ func Main(archInit func(*ssagen.ArchInfo)) {
250250
}
251251
typecheck.IncrementalAddrtaken = true
252252

253-
if base.Debug.TypecheckInl != 0 {
254-
// Typecheck imported function bodies if Debug.l > 1,
255-
// otherwise lazily when used or re-exported.
256-
typecheck.AllImportedBodies()
257-
}
258-
259253
// Read profile file and build profile-graph and weighted-call-graph.
260254
base.Timer.Start("fe", "pgoprofile")
261255
var profile *pgo.Profile

src/cmd/compile/internal/inline/inl.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,10 +1096,6 @@ func CalleeEffects(init *ir.Nodes, callee ir.Node) {
10961096
// the inlining tree position index, for use with src.NewInliningBase
10971097
// when rewriting positions.
10981098
func oldInlineCall(call *ir.CallExpr, fn *ir.Func, inlIndex int) *ir.InlinedCallExpr {
1099-
if base.Debug.TypecheckInl == 0 {
1100-
typecheck.ImportedBody(fn)
1101-
}
1102-
11031099
SSADumpInline(fn)
11041100

11051101
ninit := call.Init()

0 commit comments

Comments
 (0)