projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e481f12
)
Use a more correct atomic increment style. This isn't really necessary in
author
Owen Anderson
<resistor@mac.com>
Thu, 25 Jun 2009 16:32:45 +0000
(16:32 +0000)
committer
Owen Anderson
<resistor@mac.com>
Thu, 25 Jun 2009 16:32:45 +0000
(16:32 +0000)
this case, but it should help avoid issues in the future.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74178
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 a22a2fbd0aaeb485cb95485b680667c6c953f764..4ace049afa59dea3f5f50589ffcadfd83d7a171a 100644
(file)
--- a/
lib/Analysis/IPA/Andersens.cpp
+++ b/
lib/Analysis/IPA/Andersens.cpp
@@
-285,8
+285,8
@@
namespace {
// Timestamp a node (used for work list prioritization)
void Stamp() {
- Timestamp =
Counter
;
-
sys::AtomicIncrement(&Counter)
;
+ Timestamp =
sys::AtomicIncrement(&Counter)
;
+
--Timestamp
;
}
bool isRep() const {