Skip to content

[opt] Fix CanonicalizePass clamping: create Literal from known bits if dne#4575

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_947784218
Draft

[opt] Fix CanonicalizePass clamping: create Literal from known bits if dne#4575
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_947784218

Conversation

@copybara-service

Copy link
Copy Markdown

[opt] Fix CanonicalizePass clamping: create Literal from known bits if dne

If the clamped value was not a Literal but was known, MaybeCanonicalizeClamp previously assumed it was a Literal and crashed. Now we construct a Literal from the Bits returned by the query engine.

…f dne

If the clamped value was not a Literal but was known, MaybeCanonicalizeClamp previously assumed it was a Literal and crashed. Now we construct a Literal from the Bits returned by the query engine.

PiperOrigin-RevId: 947784218
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