[llvm-commits] [llvm] r74178 - /llvm/trunk/lib/Analysis/IPA/Andersens.cpp
Owen Anderson
resistor at mac.com
Thu Jun 25 09:32:52 PDT 2009
Author: resistor
Date: Thu Jun 25 11:32:45 2009
New Revision: 74178
URL: http://llvm.org/viewvc/llvm-project?rev=74178&view=rev
Log:
Use a more correct atomic increment style. This isn't really necessary in
this case, but it should help avoid issues in the future.
Modified:
llvm/trunk/lib/Analysis/IPA/Andersens.cpp
Modified: llvm/trunk/lib/Analysis/IPA/Andersens.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IPA/Andersens.cpp?rev=74178&r1=74177&r2=74178&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IPA/Andersens.cpp (original)
+++ llvm/trunk/lib/Analysis/IPA/Andersens.cpp Thu Jun 25 11:32:45 2009
@@ -285,8 +285,8 @@
// Timestamp a node (used for work list prioritization)
void Stamp() {
- Timestamp = Counter;
- sys::AtomicIncrement(&Counter);
+ Timestamp = sys::AtomicIncrement(&Counter);
+ --Timestamp;
}
bool isRep() const {
More information about the llvm-commits
mailing list