From: Rafael Espindola Date: Wed, 8 Jun 2011 14:13:31 +0000 (+0000) Subject: Count how many phis we are creating. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0cdca089b289845664d660f0b285499800822919;p=oota-llvm.git Count how many phis we are creating. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132748 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TailDuplication.cpp b/lib/CodeGen/TailDuplication.cpp index 04d3d311b41..ea62b191c4d 100644 --- a/lib/CodeGen/TailDuplication.cpp +++ b/lib/CodeGen/TailDuplication.cpp @@ -34,6 +34,7 @@ STATISTIC(NumTails , "Number of tails duplicated"); STATISTIC(NumTailDups , "Number of tail duplicated blocks"); STATISTIC(NumInstrDups , "Additional instructions due to tail duplication"); STATISTIC(NumDeadBlocks, "Number of dead blocks removed"); +STATISTIC(NumAddedPHIs , "Number of phis added"); // Heuristic for tail duplication. static cl::opt @@ -246,6 +247,7 @@ bool TailDuplicatePass::TailDuplicateBlocks(MachineFunction &MF) { } } + NumAddedPHIs += NewPHIs.size(); SSAUpdateVRs.clear(); SSAUpdateVals.clear(); }