Skip to content

cmd/compile: implement pointer shaping for unified IR #54513

Closed

Description

@mdempsky

CL 421821 adds basic shaping to unified IR: all type arguments are shaped to their underlying type.

It should be possible to shape further. In particular, Go 1.18 and Go 1.19 shaped pointer types together. E.g., F[*int] and F[*byte] could use the same F[go.shape.ptr] if the code didn't rely on the pointed-to type.

Beyond that, I expect we can shape structs by ignoring their field names and tags; and shape all composite types by recursively shaping their element types.

Activity

  1. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Aug 18, 2022
  2. added this to the Go1.20 milestone on Aug 18, 2022
  3. self-assigned this
    on Aug 18, 2022
  4. mdempsky commented on Aug 18, 2022

    @mdempsky
    ContributorAuthor

    Pointer-shaping is tested by cmd/compile/internal/test.TestInst.

  5. gopherbot commented on Aug 18, 2022

    @gopherbot
    Contributor

    Change https://go.dev/cl/424734 mentions this issue: cmd/compile/internal/noder: pointer shaping for unified IR

  6. locked and limited conversation to collaborators on Aug 18, 2023
  7. added a commit that references this issue on Feb 20, 2024
    b23d469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions