| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7316069a-4705-748b-72ac-f748c3d50eba |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 905E:3E4205:8C59D2:BD97A5:6B00E5A5 |
| html-safe-nonce | 6965761fdabcfcace7ee4d921be1e986c388f923e860679522748301a0d6dfc0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDVFOjNFNDIwNTo4QzU5RDI6QkQ5N0E1OjZCMDBFNUE1IiwidmlzaXRvcl9pZCI6IjU0NTg2OTI3NDAwNzI2NjcyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | db7f1d6525f821ea2d8dedb8811e69c6eb88ee5845a9f18b23eaf0472ef9303d |
| hovercard-subject-tag | pull_request:4052409312 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/purescript-lua/purescript-lua/pull/277/files |
| twitter:image | https://avatars.githubusercontent.com/u/1009751?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1009751?s=400&v=4 |
| og:image:alt | Closes #203.
Problem
The IR compiles pattern matches to decision trees of nested IfThenElse. When such a tree is consumed in a strict position it sits in expression position, and codegen wraps it i... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/purescript-lua/purescript-lua git https://github.com/purescript-lua/purescript-lua.git |
| octolytics-dimension-user_id | 131581790 |
| octolytics-dimension-user_login | purescript-lua |
| octolytics-dimension-repository_id | 587200487 |
| octolytics-dimension-repository_nwo | purescript-lua/purescript-lua |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 587200487 |
| octolytics-dimension-repository_network_root_nwo | purescript-lua/purescript-lua |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/purescript-lua/purescript-lua/pull/277/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F277%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F277%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=purescript-lua%2Fpurescript-lua |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/277/files |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/277/files |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/277/files |
| purescript-lua | https://github.com/purescript-lua |
| purescript-lua | https://github.com/purescript-lua/purescript-lua |
| Code | https://github.com/purescript-lua/purescript-lua |
| Issues48 (48) | https://github.com/purescript-lua/purescript-lua/issues |
| Pull requests | https://github.com/purescript-lua/purescript-lua/pulls |
| Discussions | https://github.com/purescript-lua/purescript-lua/discussions |
| Actions | https://github.com/purescript-lua/purescript-lua/actions |
| Projects | https://github.com/purescript-lua/purescript-lua/projects |
| Security and quality | https://github.com/purescript-lua/purescript-lua/security |
| Insights | https://github.com/purescript-lua/purescript-lua/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpurescript-lua%2Fpurescript-lua%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpurescript-lua%2Fpurescript-lua%2Fissues%2Fnew%2Fchoose |
| Unisay | https://github.com/Unisay |
| main | https://github.com/purescript-lua/purescript-lua/tree/main |
| issue-203/push-if-into-branches | https://github.com/purescript-lua/purescript-lua/tree/issue-203/push-if-into-branches |
|
Conversation
1
| https://github.com/purescript-lua/purescript-lua/pull/277 |
|
Commits
3
| https://github.com/purescript-lua/purescript-lua/pull/277/commits |
|
Checks
2
| https://github.com/purescript-lua/purescript-lua/pull/277/checks |
|
Files changed
| https://github.com/purescript-lua/purescript-lua/pull/277/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/277/files |
|
feat(ir): push case-of-case over the IfThenElse decision tree
| https://github.com/purescript-lua/purescript-lua/pull/277/files#top |
|
Show all changes
3 commits
| https://github.com/purescript-lua/purescript-lua/pull/277/files |
|
91db8bb
feat(ir): push case-of-case over the IfThenElse decision tree
Unisay Jul 14, 2026
| https://github.com/purescript-lua/purescript-lua/pull/277/commits/91db8bb86833ff76f776d755efcd795baa678b47 |
|
8f39bb6
feat(ir): fold half-literal boolean ifs to and/or
Unisay Jul 14, 2026
| https://github.com/purescript-lua/purescript-lua/pull/277/commits/8f39bb6d80bc65fbef9c6656a8cf4eac1e6201c5 |
|
cb5437e
test(bench): accept EffectStep JIT counters after IIFE removal
Unisay Jul 14, 2026
| https://github.com/purescript-lua/purescript-lua/pull/277/commits/cb5437e84dfd24e278f08b0316a2d3b4fcf854ae |
|
Clear filters
| https://github.com/purescript-lua/purescript-lua/pull/277/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/277/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/277/files |
|
fnew_Bench.EffectStep.txt
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-d142955d9df01a6142e53c498a86ac3e67dee7806b0eb7268fac26fa7d3a33f6 |
|
trace_effect_step.txt
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-7904b97af15917900da64d4eced661d2fe5064da227bec607e8f39eccdf80f49 |
|
20260714_120000_unisay_case_of_case_if.md
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-7260e176c3c58f20689ccd596a546ec14003fdf70b8a8bd238de7a2420b740c7 |
|
Optimizer.hs
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
Spec.hs
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-241ea2421c606c31b9414fb386f9f4d1beb60055ed792935b393101edfd7b949 |
|
Spec.hs
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-e10bc6586bdc2afb3eed89cc8935f6ff0059d32a82668123ce53808a6046c019 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-8529207f5726b1c4ce856b7d81dadbbbdc4b244d37e96f40d897c3acc69290b8 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-0c90c2d7623d39f887ed98803e0198ce7532cb955c04690d5c518a02bb16d0e1 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-51768e0a180e8ba17b000ead8fa35bcd5743917951b324a2b821a2ffbfd4ee35 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-33101f4068d284cd068f09a25c752d3e6d8287f96ae0b55f30ffa86fa165fa8e |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-40d54b27f028b6066bcec746327a3f0a128053c75819d4019f03cfcc0fce015f |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-a3c17d21777b8fc58fbba68eb74a46fb303e60a17d8524ca2674479e0ebf7eb9 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-d3c70e506ea822ff99389c6a4e383878df25de8723c47a01e91e7dc5792501dc |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-596c7cb04898e2e110885627fbe42de08e09aa38b253a73bf3a99c9cedfa6bec |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-ce61e5ff69c413ad0c200ac100302efe37a9755b081dd33467d21b12371cebf1 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-0f80457c0b35d0736c4041d3b36ae67c88c3cce1cb9d8f8114bb21515291c8e2 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-c87daf3e43a53dd52fa264f09901b86021b6ee624f9da16bea90707758b8abfe |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-7a0f829c8097adffc9b5bff2f03fd5a9a7d69ed4d2e1719bd21e8c484253266d |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-f9943d3f5555f061aef68809331d25271db2cdf83b9582b87d07ddc46f15a2ac |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-b59594d39ce0a26be09bceb807e448b130b409c99f1c39c673fb89e4fc6ae36d |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-df535e1f7273af0cc86db20df55495de4552000d7bf2f3abb21f421d07947914 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-8f846c962c84e2efb0046e7848c15b3bac3e044be37a2d2ee0620f823f2e9b0f |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-943a6e999776e2a06a4d4209af7f89e9a8d977d6000c31c70ed84e781da2e2ff |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-56618fb442d7b6de74d0159576d795d225986345ac7840c4a3a8a3831cb98ad3 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-afce6b8baac1ba8767363e541803baa37fca9f4bbabbf612d91769ec36efc412 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-ac5bf4ca9d458346d8eadd0865c78e8f31b6e180153f1aee53f9874d2313eb8e |
| bench/goldens/fnew_Bench.EffectStep.txt | https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-d142955d9df01a6142e53c498a86ac3e67dee7806b0eb7268fac26fa7d3a33f6 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/cb5437e84dfd24e278f08b0316a2d3b4fcf854ae/bench/goldens/fnew_Bench.EffectStep.txt |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/277/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-d142955d9df01a6142e53c498a86ac3e67dee7806b0eb7268fac26fa7d3a33f6 |
| bench/goldens/trace_effect_step.txt | https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-7904b97af15917900da64d4eced661d2fe5064da227bec607e8f39eccdf80f49 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/cb5437e84dfd24e278f08b0316a2d3b4fcf854ae/bench/goldens/trace_effect_step.txt |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/277/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-7904b97af15917900da64d4eced661d2fe5064da227bec607e8f39eccdf80f49 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-7904b97af15917900da64d4eced661d2fe5064da227bec607e8f39eccdf80f49 |
| changelog.d/20260714_120000_unisay_case_of_case_if.md | https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-7260e176c3c58f20689ccd596a546ec14003fdf70b8a8bd238de7a2420b740c7 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/cb5437e84dfd24e278f08b0316a2d3b4fcf854ae/changelog.d/20260714_120000_unisay_case_of_case_if.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/277/{{ revealButtonHref }} |
| lib/Language/PureScript/Backend/IR/Optimizer.hs | https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/cb5437e84dfd24e278f08b0316a2d3b4fcf854ae/lib/Language/PureScript/Backend/IR/Optimizer.hs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/277/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/277/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/277/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |