summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-05-16 21:51:07 +0000
committerJim Grosbach <grosbach@apple.com>2011-05-16 21:51:07 +0000
commite85c0dde7a6f1cb7fbe99676b3d15389d36849f6 (patch)
treed9bdedc10665a17f575ca712c7a2d01548f78825 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parentc9675152b3b569562c1b6754427b45b8177d3e10 (diff)
downloadbcm5719-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.cpp2
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.
OpenPOWER on IntegriCloud