Skip to content

reduce: fix loop to selection pass for loops with combined header/continue block#2480

Merged
paulthomson merged 2 commits intoKhronosGroup:masterfrom
paulthomson:skip_loops_with_continue_header
Mar 29, 2019
Merged

reduce: fix loop to selection pass for loops with combined header/continue block#2480
paulthomson merged 2 commits intoKhronosGroup:masterfrom
paulthomson:skip_loops_with_continue_header

Conversation

@paulthomson
Copy link
Copy Markdown
Contributor

@paulthomson paulthomson commented Mar 27, 2019

Copy link
Copy Markdown
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.

I very much like the way you have cleaned up the code, and the fix for the issue looks good.

Regarding having both MergeBlockId and MergeBlockIdIfAny: I like it, but it occurred to me that in release mode they are functionally equivalent as assertions are disabled. I also wonder whether the comment "Returns MergeBlockIdIfAny() and asserts that it is non-zero" is guilty of parroting what the implementation of the method does. That said, I can't really think of a more useful comment as the method is very simple.

@paulthomson paulthomson merged commit fcb8453 into KhronosGroup:master Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reduce: loop to selection pass segfaults on a loop where header block == continue target

3 participants