[llvm-commits] [llvm] r74129 - /llvm/trunk/lib/Analysis/IPA/Andersens.cpp

Duncan Sands baldrick at free.fr
Thu Jun 25 01:20:37 PDT 2009


Hi Owen,

>        // Timestamp a node (used for work list prioritization)
>        void Stamp() {
> -        Timestamp = Counter++;
> +        Timestamp = Counter;
> +        sys::AtomicIncrement(&Counter);

does it matter if different threads have the same value for Timestamp?

Ciao,

Duncan.



More information about the llvm-commits mailing list