diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-05-16 21:51:07 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-05-16 21:51:07 +0000 |
commit | 62427ae8d311d3dda8f5257ddf34d13c19c214bb (patch) | |
tree | b8b96bada1568770cb1400d5c3f05b23cd72d3ad /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 57f4b0362189c879c54c12892a37670c38dcc7ab (diff) |
Track how many insns fast-isel successfully selects as well as how many it
misses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d1d28cec66..592a11526c 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -55,6 +55,7 @@ using namespace llvm; STATISTIC(NumFastIselFailures, "Number of instructions fast isel failed on"); +STATISTIC(NumFastIselSuccess, "Number of instructions fast isel selected"); STATISTIC(NumFastIselBlocks, "Number of blocks selected entirely by fast isel"); STATISTIC(NumDAGBlocks, "Number of blocks selected using DAG"); STATISTIC(NumDAGIselRetries,"Number of times dag isel has to try another path"); @@ -927,6 +928,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) { // Try to select the instruction with FastISel. if (FastIS->SelectInstruction(Inst)) { + ++NumFastIselSuccess; // If fast isel succeeded, skip over all the folded instructions, and // then see if there is a load right before the selected instructions. // Try to fold the load if so. |