Skip to content

Comments

Intern stack frame construction.#2302

Open
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_862768899
Open

Intern stack frame construction.#2302
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_862768899

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Feb 13, 2026

Intern stack frame construction.

This allows us to cheaply compare two stack locations for equality, enabling relatively cheap prefix tests.

This PR does introduce a couple of functional changes:

  • we will now drop illegal metadata during parsing or proto deserialization. I tried erroring at first but it turns out people do indeed want to parse serialized HLO with illegal metadata.
  • we now no longer preserve unreferenced code source metadata during deserialization or parsing. Such metadata will therefore no longer round trip, but it's not clear to me why you would want that.

This allows us to cheaply compare two stack locations for equality, enabling relatively cheap prefix tests.

This PR does introduce a couple of functional changes:
* we will now drop illegal metadata during parsing or proto deserialization. I tried erroring at first but it turns out people do indeed want to parse serialized HLO with illegal metadata.
* we now no longer preserve unreferenced code source metadata during deserialization or parsing. Such metadata will therefore no longer round trip, but it's not clear to me why you would want that.

PiperOrigin-RevId: 862768899
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant