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 | e85c0dde7a6f1cb7fbe99676b3d15389d36849f6 (patch) | |
tree | d9bdedc10665a17f575ca712c7a2d01548f78825 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | c9675152b3b569562c1b6754427b45b8177d3e10 (diff) | |
download | bcm5719-llvm-e85c0dde7a6f1cb7fbe99676b3d15389d36849f6.tar.gz bcm5719-llvm-e85c0dde7a6f1cb7fbe99676b3d15389d36849f6.zip |
Track how many insns fast-isel successfully selects as well as how many it
misses.
llvm-svn: 131426
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d1d28cec66d..592a11526cb 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/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. |