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

Fix non-determinism in Reassociate caused by address coincidences #6717

Conversation

adam-yang
Copy link
Contributor

@adam-yang adam-yang commented Jun 21, 2024

Originally @lizhengxing's PR. Retargeting main.

This PR pulls the upstream change, Fix non-determinism in Reassociate caused by address coincidences (llvm/llvm-project@ef8761f), into DXC.

Here's the summary of the change:

Between building the pair map and querying it there are a few places that erase and create Values. It's rare but the address of these newly created Values is occasionally the same as a
just-erased Value that we already have in the pair map. These coincidences should be accounted for to avoid non-determinism.

Thanks to Roman Tereshin for the test case.

This is part 6 (the last part) of the fix for #6659.

@adam-yang adam-yang requested a review from a team as a code owner June 21, 2024 19:32
Copy link
Member

@dmpots dmpots left a comment

Choose a reason for hiding this comment

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

Wohoo!

Copy link
Member

@damyanp damyanp left a comment

Choose a reason for hiding this comment

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

LLAFPOTUCTM!

(Looks like a faithful port of the upstream commit to me)

This PR pulls the upstream change, Fix non-determinism in Reassociate caused by address coincidences (llvm/llvm-project@ef8761f), into DXC.

Here's the summary of the change:

  Between building the pair map and querying it there are a few places that erase and create Values. It's rare but the address of these newly created Values is occasionally the same as a
  just-erased Value that we already have in the pair map. These coincidences should be accounted for to avoid non-determinism.

  Thanks to Roman Tereshin for the test case.

This is part 6 (the last part) of the fix for microsoft#6659.
@adam-yang adam-yang force-pushed the user/hanbyang/Fix-non-determ-in-Reassociate-upstream branch from fd7f8b6 to 07bfc26 Compare June 24, 2024 22:05
@adam-yang adam-yang merged commit 74205f8 into microsoft:main Jun 25, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants