Skip to content

testsuite: a test case for a pessimization from 13076#13337

Merged
gasche merged 2 commits intoocaml:trunkfrom
gasche:matching-bug-13076-pessimization
Jul 31, 2024
Merged

testsuite: a test case for a pessimization from 13076#13337
gasche merged 2 commits intoocaml:trunkfrom
gasche:matching-bug-13076-pessimization

Conversation

@gasche
Copy link
Copy Markdown
Member

@gasche gasche commented Jul 29, 2024

#13076, part of The Pattern-Matching Bug PR series and already merged, introduced a small regression / pessimization -- some pattern-matching programs generate slightly worse code than before. I will be working on a fix, but a good first step is to introduce a testcase for the issue -- which would help reviewing a fix, and can serve as a regression test later.

@ncik-roberts
Copy link
Copy Markdown
Contributor

(I happen to have been reading through the linked PR and saw this, hence the immediate response.) This indeed looks like a proper regression test. I would click "Approve" if I could.

@gasche
Copy link
Copy Markdown
Member Author

gasche commented Jul 30, 2024

I added the two extra test cases proposed by @ncik-roberts in #13076 (comment) .

@gasche
Copy link
Copy Markdown
Member Author

gasche commented Jul 31, 2024

This needs approval from a maintainer to move forward.

Copy link
Copy Markdown
Member

@yallop yallop left a comment

Choose a reason for hiding this comment

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

Approving on behalf of @ncik-roberts (but it looks sensible to me, too).

@gasche
Copy link
Copy Markdown
Member Author

gasche commented Jul 31, 2024

Thanks! Merging.

@gasche gasche merged commit af33f3f into ocaml:trunk Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants