[PATCH] D21335: [TailDuplication] Split up NumInstrDups statistic.

Geoff Berry via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 14 12:46:58 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL272700: [TailDuplication] Split up NumInstrDups statistic. (authored by gberry).

Changed prior to commit:
  http://reviews.llvm.org/D21335?vs=60722&id=60726#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D21335

Files:
  llvm/trunk/lib/CodeGen/TailDuplicator.cpp

Index: llvm/trunk/lib/CodeGen/TailDuplicator.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/TailDuplicator.cpp
+++ llvm/trunk/lib/CodeGen/TailDuplicator.cpp
@@ -33,7 +33,10 @@
 
 STATISTIC(NumTails, "Number of tails duplicated");
 STATISTIC(NumTailDups, "Number of tail duplicated blocks");
-STATISTIC(NumInstrDups, "Additional instructions due to tail duplication");
+STATISTIC(NumTailDupAdded,
+          "Number of instructions added due to tail duplication");
+STATISTIC(NumTailDupRemoved,
+          "Number of instructions removed due to tail duplication");
 STATISTIC(NumDeadBlocks, "Number of dead blocks removed");
 STATISTIC(NumAddedPHIs, "Number of phis added");
 
@@ -145,7 +148,7 @@
 
   // If it is dead, remove it.
   if (isDead) {
-    NumInstrDups -= MBB->size();
+    NumTailDupRemoved += MBB->size();
     removeDeadBlock(MBB);
     ++NumDeadBlocks;
   }
@@ -805,7 +808,7 @@
     // Simplify
     TII->AnalyzeBranch(*PredBB, PredTBB, PredFBB, PredCond, true);
 
-    NumInstrDups += TailBB->size() - 1; // subtract one for removed branch
+    NumTailDupAdded += TailBB->size() - 1; // subtract one for removed branch
 
     // Update the CFG.
     PredBB->removeSuccessor(PredBB->succ_begin());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21335.60726.patch
Type: text/x-patch
Size: 1266 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160614/66799a94/attachment.bin>


More information about the llvm-commits mailing list