Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve conditional pattern #5675

Open
plafosse opened this issue Jun 30, 2024 · 0 comments
Open

Improve conditional pattern #5675

plafosse opened this issue Jun 30, 2024 · 0 comments
Labels
Component: Core Issue needs changes to the core Core: HLIL Issue involves High Level IL Effort: Low Issue should take < 1 week IL Optimization Issue involving optimization of representation (not correctness) Impact: Medium Issue is impactful with a bad, or no, workaround

Comments

@plafosse
Copy link
Member

plafosse commented Jun 30, 2024

What is the feature you'd like to have?

// For the pattern:
if (a)
      if (b)
        goto label
      do_something()
      break
label:
// Simplify to:
if (a && !b)
  do_something()
  break

Internally shared file treasure sloth surfboard sing @ 1407717f8

@plafosse plafosse added Component: Core Issue needs changes to the core Core: HLIL Issue involves High Level IL IL Optimization Issue involving optimization of representation (not correctness) Effort: Low Issue should take < 1 week Impact: Medium Issue is impactful with a bad, or no, workaround labels Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Core Issue needs changes to the core Core: HLIL Issue involves High Level IL Effort: Low Issue should take < 1 week IL Optimization Issue involving optimization of representation (not correctness) Impact: Medium Issue is impactful with a bad, or no, workaround
Projects
None yet
Development

No branches or pull requests

1 participant