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

Simplify conditional pattern x u< N then x != 0 #5689

Open
plafosse opened this issue Jul 4, 2024 · 0 comments
Open

Simplify conditional pattern x u< N then x != 0 #5689

plafosse opened this issue Jul 4, 2024 · 0 comments
Labels
Core: HLIL Issue involves High Level IL Effort: Trivial Issue should take < 1 day IL Optimization Issue involving optimization of representation (not correctness) Impact: Low Issue is a papercut or has a good, supported workaround Type: Enhancement Issue is a small enhancement to existing functionality

Comments

@plafosse
Copy link
Member

plafosse commented Jul 4, 2024

The following pattern can be simplified

if (a3 u< 8)
    if (a3 != 0)
        ...
    return result

to

if (a3 == 0)
 return result

if (a3 u< 8)
    ...
    return result

Internal binary sparkle giraffe juggling toaster & 1c000a287

@plafosse plafosse added Type: Enhancement Issue is a small enhancement to existing functionality Core: HLIL Issue involves High Level IL IL Optimization Issue involving optimization of representation (not correctness) Impact: Low Issue is a papercut or has a good, supported workaround Effort: Trivial Issue should take < 1 day labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core: HLIL Issue involves High Level IL Effort: Trivial Issue should take < 1 day IL Optimization Issue involving optimization of representation (not correctness) Impact: Low Issue is a papercut or has a good, supported workaround Type: Enhancement Issue is a small enhancement to existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant