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

Merge 6abb92f2103a58d097620b4410054c5bb18c48ec into 12.0.1 #49215

Closed
llvmbot opened this issue Apr 7, 2021 · 4 comments
Closed

Merge 6abb92f2103a58d097620b4410054c5bb18c48ec into 12.0.1 #49215

llvmbot opened this issue Apr 7, 2021 · 4 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla

Comments

@llvmbot
Copy link
Member

llvmbot commented Apr 7, 2021

Bugzilla Link 49871
Resolution FIXED
Resolved on May 11, 2021 20:49
Version 11.0
OS Windows NT
Blocks #48661
Reporter LLVM Bugzilla Contributor
CC @tstellar
Fixed by commit(s) 6abb92f aa97726

Extended Description

Please merge 6abb92f.

[SCCP] Avoid modifying AdditionalUsers while iterating over it

When run under valgrind, or with a malloc that poisons freed memory,
this can lead to segfaults or other problems.

To avoid modifying the AdditionalUsers DenseMap while still iterating,
save the instructions to be notified in a separate SmallPtrSet, and use
this to later call OperandChangedState on each instruction.

Fixes #48926 .

@llvmbot
Copy link
Member Author

llvmbot commented Apr 7, 2021

assigned to @tstellar

@tstellar
Copy link
Collaborator

tstellar commented May 4, 2021

Hi Florian,

What is your opinion on backporting this?

https://reviews.llvm.org/rG6abb92f2103a58d097620b4410054c5bb18c48ec

@fhahn
Copy link
Contributor

fhahn commented May 4, 2021

Hi Florian,

What is your opinion on backporting this?

https://reviews.llvm.org/rG6abb92f2103a58d097620b4410054c5bb18c48ec

I think that should be fine, given that it's small patch with a clear improvement. Please let me know if the patch does not apply cleanly, happy to help out.

@tstellar
Copy link
Collaborator

Merged: aa97726

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

3 participants