Skip to content

Conversation

scaventz
Copy link
Contributor

@scaventz scaventz commented Jun 12, 2025

Partially fix KT-76589.

This PR enables generation of TABLESWITCH/LOOKUPSWITCH for when-expressions over Short/Byte, but does not support emitting those bytecodes for when-expression overs mixed types.

The idea of ​​generating a lookupswitch for the test case lookupSwitchOverMixTypes.kt would require a bit more work if it is possible and worthwhile.

Test data files bytecodeText\when\tableSwitch.kt and bytecodeText\when\lookupSwitch.kt are removed in this PR, and the test cases in them are separated into different test files.

@scaventz scaventz force-pushed the KT-76589-when-opimization-6-12 branch from d582c71 to 7c1ab7b Compare June 12, 2025 17:39
@scaventz scaventz marked this pull request as ready for review June 12, 2025 18:35
@scaventz scaventz requested review from a team as code owners June 12, 2025 18:35
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