Skip to content

Fix test failures revealed by reverse iteration (nondeterminism)#23162

Merged
kuhar merged 2 commits intoiree-org:mainfrom
kuhar:reverse-iterate-fixes
Jan 17, 2026
Merged

Fix test failures revealed by reverse iteration (nondeterminism)#23162
kuhar merged 2 commits intoiree-org:mainfrom
kuhar:reverse-iterate-fixes

Conversation

@kuhar
Copy link
Member

@kuhar kuhar commented Jan 16, 2026

Using #23161

Copy link
Contributor

@amd-eochoalo amd-eochoalo left a comment

Choose a reason for hiding this comment

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

I think this looks good, but it is my first time looking into these files. The changes in AutomaticReferenceCounting.cpp are pretty self contained so that looks good! For the changes of HoistIntoGlobals, my question would be why aren't we using dominance instead of adding opOrder? Is it too expensive?

@kuhar
Copy link
Member Author

kuhar commented Jan 16, 2026

Because two ops in sibling regions wouldn't dominate one another. I think we need total order to stay deterministic.

@amd-eochoalo
Copy link
Contributor

Because two ops in sibling regions wouldn't dominate one another. I think we need total order to stay deterministic.

Thanks!

@kuhar kuhar merged commit 5877832 into iree-org:main Jan 17, 2026
52 of 54 checks passed
keshavvinayak01 pushed a commit that referenced this pull request Jan 27, 2026
)

Using #23161

Signed-off-by: Keshav Vinayak Jha <keshavvinayakjha@gmail.com>
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.

2 participants