[llvm-commits] [llvm] r131426 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Jim Grosbach
grosbach at apple.com
Mon May 16 14:51:07 PDT 2011
Author: grosbach
Date: Mon May 16 16:51:07 2011
New Revision: 131426
URL: http://llvm.org/viewvc/llvm-project?rev=131426&view=rev
Log:
Track how many insns fast-isel successfully selects as well as how many it
misses.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=131426&r1=131425&r2=131426&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Mon May 16 16:51:07 2011
@@ -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 @@
// 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.
More information about the llvm-commits
mailing list