Skip to content

cmd/compile: functions with type switches cannot be inlined #37837

Closed

Description

@aebrahim

What version of Go are you using (go version)?

$ go version
go version go1.14 linux/amd64

Does this issue reproduce with the latest release?

N/A 1.14 is the latest release

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"

What did you do?

go build -gcflags="-m -m" demo.go
demo.go.txt

What did you expect to see?

Inlining of small function after #13071

What did you see instead?

./demo.go:15:6: cannot inline SomeFunc: unhandled op TYPESW

Activity

  1. added this to the Unplanned milestone on Mar 13, 2020
  2. randall77 commented on Mar 13, 2020

    @randall77
    Contributor

    I think we just need to figure out what cost we should assign it.

  3. added
    NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.
    on Mar 13, 2020
  4. gopherbot commented on Oct 29, 2020

    @gopherbot
    Contributor

    Change https://golang.org/cl/266203 mentions this issue: cmd/compile: support inlining of type switches

  5. locked and limited conversation to collaborators on Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Performancehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions