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

Fixed IfConversion #1081

Merged
merged 4 commits into from
Sep 7, 2023
Merged

Fixed IfConversion #1081

merged 4 commits into from
Sep 7, 2023

Conversation

m4rs-mt
Copy link
Owner

@m4rs-mt m4rs-mt commented Sep 4, 2023

This PR fixes a critical bug in the IfConversion transformation that could happen in the presence of endless loops and loops that cannot be proven to terminate easily.

@m4rs-mt m4rs-mt added the bug label Sep 4, 2023
@m4rs-mt m4rs-mt added this to the v2.0 milestone Sep 4, 2023
@m4rs-mt m4rs-mt marked this pull request as draft September 4, 2023 10:12
@m4rs-mt m4rs-mt force-pushed the if_conversion branch 3 times, most recently from c0f356e to d2cd747 Compare September 5, 2023 09:37
@m4rs-mt m4rs-mt marked this pull request as ready for review September 5, 2023 09:59
@m4rs-mt m4rs-mt merged commit d1dee9f into master Sep 7, 2023
43 checks passed
@m4rs-mt m4rs-mt deleted the if_conversion branch September 7, 2023 14:53
MoFtZ pushed a commit to MoFtZ/ILGPU that referenced this pull request Sep 8, 2023
* Extended PhiBindings analysis to check for individual branch targets.
* Fixed IfConversion transformation phasing possibilities of endless loop branches.
* Fixed PTXCodeGenerator to emit individual target bindings.
* Added new test case for improved IfConversion transformation.
@MoFtZ MoFtZ mentioned this pull request Sep 11, 2023
m4rs-mt added a commit that referenced this pull request Sep 12, 2023
* Fixed IfConversion.
- Backported #1081.

Co-authored-by: Marcel Koester <[email protected]>
MoFtZ pushed a commit to MoFtZ/ILGPU that referenced this pull request Apr 24, 2024
* Extended PhiBindings analysis to check for individual branch targets.
* Fixed IfConversion transformation phasing possibilities of endless loop branches.
* Fixed PTXCodeGenerator to emit individual target bindings.
* Added new test case for improved IfConversion transformation.
MoFtZ pushed a commit to MoFtZ/ILGPU that referenced this pull request Apr 24, 2024
* Extended PhiBindings analysis to check for individual branch targets.
* Fixed IfConversion transformation phasing possibilities of endless loop branches.
* Fixed PTXCodeGenerator to emit individual target bindings.
* Added new test case for improved IfConversion transformation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants