You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/compile: implement pointer shaping for unified IR #54513
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
mdempsky commentedon Aug 18, 2022
Pointer-shaping is tested by cmd/compile/internal/test.TestInst.
gopherbot commentedon Aug 18, 2022
Change https://go.dev/cl/424734 mentions this issue:
cmd/compile/internal/noder: pointer shaping for unified IRcmd/compile/internal/noder: pointer shaping for unified IR