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

reduce: fix loop to selection dominance query #2477

Conversation

paulthomson
Copy link
Contributor

@paulthomson paulthomson commented Mar 26, 2019

Fix #2457.

StructuredLoopToSelectionReductionOpportunity::FixNonDominatedIdUses considers every instruction in the function being modified and tries to fix dominance by checking the dominance of all uses. Unfortunately, some of these "uses" can be OpDecorate instructions that are outside of blocks, which causes a segfault.

@paulthomson paulthomson requested a review from afd March 26, 2019 13:37
Copy link
Contributor

@afd afd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good. My only question is whether the project has a preference for "if (p == nullptr)" vs. "if (!p)" - I don't have an opinion on which is preferable.

@paulthomson paulthomson merged commit fb07536 into KhronosGroup:master Mar 26, 2019
@paulthomson paulthomson deleted the fix_loop_to_selection_dominance_query branch March 26, 2019 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants