OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09fc0fa
)
Make this thread-safe.
author
Owen Anderson
<resistor@mac.com>
Wed, 24 Jun 2009 22:16:52 +0000
(22:16 +0000)
committer
Owen Anderson
<resistor@mac.com>
Wed, 24 Jun 2009 22:16:52 +0000
(22:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74129
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/IPA/Andersens.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/IPA/Andersens.cpp
b/lib/Analysis/IPA/Andersens.cpp
index
8584d06
..
a22a2fb
100644
(file)
--- a/
lib/Analysis/IPA/Andersens.cpp
+++ b/
lib/Analysis/IPA/Andersens.cpp
@@
-65,6
+65,7
@@
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/Passes.h"
#include "llvm/Support/Debug.h"
+#include "llvm/System/Atomic.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/SparseBitVector.h"
#include "llvm/ADT/DenseSet.h"
@@
-284,7
+285,8
@@
namespace {
// Timestamp a node (used for work list prioritization)
void Stamp() {
- Timestamp = Counter++;
+ Timestamp = Counter;
+ sys::AtomicIncrement(&Counter);
}
bool isRep() const {