Skip to content

Conversation

@fzi-hielscher
Copy link
Contributor

Fixes the lowering of single element dynamic extracts from arrays of arrays in MooreToCore. Previously, an array typed result of an extract would always cause the emission of a slice operation instead of a get operation. This changes the logic to emit a get operation if the result type is equal to the input array's element type.

Effectively to what #8942 did for static extracts. Should fix #9246.

Copy link
Member

@maerhart maerhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fzi-hielscher fzi-hielscher merged commit 61b1c87 into llvm:main Nov 24, 2025
7 checks passed
@fzi-hielscher fzi-hielscher deleted the moortocore-fix branch November 24, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: op failed to verify that width of result type has to be smaller than or equal to the input type

2 participants