[llvm] r292025 - [NewGVN] Try to be consistent wit the style used in this file. NFCI.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 14 12:13:18 PST 2017


Author: davide
Date: Sat Jan 14 14:13:18 2017
New Revision: 292025

URL: http://llvm.org/viewvc/llvm-project?rev=292025&view=rev
Log:
[NewGVN] Try to be consistent wit the style used in this file. NFCI.

Modified:
    llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp?rev=292025&r1=292024&r2=292025&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp Sat Jan 14 14:13:18 2017
@@ -1455,7 +1455,7 @@ void NewGVN::updateProcessedCount(Value
   if (ProcessedCount.count(V) == 0) {
     ProcessedCount.insert({V, 1});
   } else {
-    ProcessedCount[V] += 1;
+    ++ProcessedCount[V];
     assert(ProcessedCount[V] < 100 &&
            "Seem to have processed the same Value a lot");
   }




More information about the llvm-commits mailing list