Skip to content

Fix crash in IR minimizer when slicing operands of widening operations. - #4763

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

Fix crash in IR minimizer when slicing operands of widening operations.#4763
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_963665638

Conversation

@copybara-service

Copy link
Copy Markdown

Fix crash in IR minimizer when slicing operands of widening operations.

The IR minimizer can crash when attempting to slice operands of a node (such as a widening multiply) if the operands are narrower than the slice range of the node itself. This change adds a check to ensure all operands are wide enough before attempting to slice them, returning kDidNotChange if they are not. Regression tests are added to cover these scenarios.

The IR minimizer can crash when attempting to slice operands of a node (such as a widening multiply) if the operands are narrower than the slice range of the node itself. This change adds a check to ensure all operands are wide enough before attempting to slice them, returning kDidNotChange if they are not. Regression tests are added to cover these scenarios.

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