-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: export data doesn't need to record type parameter indices #47451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Change https://golang.org/cl/338192 mentions this issue: |
The unified IR export data format has never used type parameter indices. |
Sorry, I confused this to be about the debug IDs (which unified IR has never used at all). Unified IR uses the indices for writing out export data, but they're not encoded into the export data at all. I've also played with even removing uses of them within the writer, and can do that if you'd like to remove |
I filed this issue because of this change on line 371. It seems to me that we read an index on that line that we don't need anymore? |
/cc @danscales |
…e bound This is a port of CL 336249 with adjustments due to slightly different handling of type parameter declaration in types2. The CL also contains adjustments to the compiler front-end. With this change it is not necessary to export type parameter indices. Filed issue #47451 so we don't forget. Change-Id: I2834f7be313fcb4763dff2a9058f1983ee6a81b3 Reviewed-on: https://go-review.googlesource.com/c/go/+/338192 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Change https://golang.org/cl/340532 mentions this issue: |
Reminder issue:
With CL 338192 we don't need to record type parameter indices in the export data anymore.
Should adjust the format at some point.
cc: @mdempsky
The text was updated successfully, but these errors were encountered: