Count how many phis we are creating.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132748 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2011-06-08 14:13:31 +00:00
parent aaa5f14d7c
commit 0cdca089b2

View File

@ -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<unsigned>
@ -246,6 +247,7 @@ bool TailDuplicatePass::TailDuplicateBlocks(MachineFunction &MF) {
}
}
NumAddedPHIs += NewPHIs.size();
SSAUpdateVRs.clear();
SSAUpdateVals.clear();
}