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

Recreate simplified select node #7007

Merged

Conversation

kevindean12
Copy link
Contributor

When a select of two 0/1 constants is simplified to the reverse of its condition node, in the case where the select has a reference count > 1 and the condition first child has a reference count of only 1, the second reference to the select node will be simplified incorrectly to a twice-reversed condition (please see issue #7006 for details). Recreates the select node in order to preserve the simplification done to it for future references, reducing repeated simplification of a previously commoned node and preventing the error in the case described above.

@kevindean12
Copy link
Contributor Author

Jenkins build all

@kevindean12
Copy link
Contributor Author

@0xdaryl ping as a reminder about this one.

-when a select of two 0/1 constants is simplified to the reverse
of its condition node, in the case where the select has a reference
count > 1 and the condition first child has a reference count of
only 1, the second reference to the select node will be simplified
incorrectly to a twice-reversed condition (please see issue eclipse-omr#7006 for
details).
-recreates the select node in order to preserve the simplification
done to it for future references, reducing repeated simplification
of a previously commoned node and preventing the error in the case
described above

Closes: eclipse-omr#7006
@0xdaryl 0xdaryl merged commit 283d187 into eclipse-omr:master Jun 2, 2023
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.

2 participants