[PATCH] D16015: [PGO] Create the profile data variable before the lowering

Betul Buyukkurt via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 12 11:38:51 PST 2016


betulb added a subscriber: betulb.

================
Comment at: lib/Transforms/Instrumentation/InstrProfiling.cpp:158
@@ +157,3 @@
+      for (auto I = BB.begin(), E = BB.end(); I != E;)
+        if (!CounterVarSet) {
+          if (auto *Inc = dyn_cast<InstrProfIncrementInst>(I++)) {
----------------
if (!CounterVarSet) in the above line is redundant.


http://reviews.llvm.org/D16015





More information about the llvm-commits mailing list