x/tools/internal/refactor/inline: more precise analysis of return conversions in tail-call strategy #63336
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
This call in callee.go:
is inlined to
I think the only reason is that the final return nil involves a non-trivial conversion from untyped nil to Type(nil), yet TypeOf() is being tailcalled in a Type context, so it's quite safe. It would be nice if this were reduced to this:
(This is a feature request for a [style] optimization, not a bug, in the terms of source-level inliner.)
The text was updated successfully, but these errors were encountered: