-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
[SCCP] fix non-determinism #105758
[SCCP] fix non-determinism #105758
Conversation
Created using spr 1.3.4
@llvm/pr-subscribers-backend-x86 @llvm/pr-subscribers-llvm-transforms Author: Florian Mayer (fmayer) Changesthe visit order depended on hashing because we iterated over a Full diff: https://github.com/llvm/llvm-project/pull/105758.diff 1 Files Affected:
diff --git a/llvm/lib/Transforms/Utils/SCCPSolver.cpp b/llvm/lib/Transforms/Utils/SCCPSolver.cpp
index 40f0f04c323ddc..670d88ac7cf8fa 100644
--- a/llvm/lib/Transforms/Utils/SCCPSolver.cpp
+++ b/llvm/lib/Transforms/Utils/SCCPSolver.cpp
@@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/Utils/SCCPSolver.h"
+#include "llvm/ADT/SetVector.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Analysis/InstructionSimplify.h"
#include "llvm/Analysis/ValueLattice.h"
@@ -418,7 +419,7 @@ class SCCPInstVisitor : public InstVisitor<SCCPInstVisitor> {
DenseMap<Function *, std::unique_ptr<PredicateInfo>> FnPredicateInfo;
- DenseMap<Value *, SmallPtrSet<User *, 2>> AdditionalUsers;
+ DenseMap<Value *, SmallSetVector<User *, 2>> AdditionalUsers;
LLVMContext &Ctx;
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
presubmit failure seems like an infra issue, is happening on all recent PRs. |
the visit order depended on hashing because we iterated over a SmallPtrSet
the visit order depended on hashing because we iterated over a SmallPtrSet
the visit order depended on hashing because we iterated over a SmallPtrSet
the visit order depended on hashing because we iterated over a SmallPtrSet Ordering of codegen of one test changed, but is equivalent Reviewers: nikic Reviewed By: nikic Pull Request: llvm#105758
the visit order depended on hashing because we iterated over a SmallPtrSet (cherry picked from commit aec3ec0)
the visit order depended on hashing because we iterated over a SmallPtrSet (cherry picked from commit aec3ec0)
the visit order depended on hashing because we iterated over a
SmallPtrSet