static cl::opt<int> PreSplitLimit("pre-split-limit", cl::init(-1), cl::Hidden);
-STATISTIC(NumSplits, "Number of intervals split");
+STATISTIC(NumTotalSplits, "Number of intervals split");
STATISTIC(NumRemats, "Number of intervals split by rematerialization");
STATISTIC(NumFolds, "Number of intervals split with spill folding");
STATISTIC(NumRenumbers, "Number of intervals renumbered into new registers");
// Def2SpillMap - A map from a def instruction index to spill index.
DenseMap<unsigned, unsigned> Def2SpillMap;
+
+ unsigned NumSplits;
public:
static char ID;
LSs = &getAnalysis<LiveStacks>();
bool MadeChange = false;
+ NumSplits = 0;
// Make sure blocks are numbered in order.
MF.RenumberBlocks();
}
MadeChange |= removeDeadSpills(Split);
+
+ if (NumSplits)
+ NumTotalSplits += NumSplits;
return MadeChange;
}