diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-01-06 23:45:47 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-01-06 23:45:47 +0000 |
commit | 73a3fab480de3804b755d50e427f5d2cda0b6866 (patch) | |
tree | cc69b32116e50f672971719ca102f6e5ce5962c5 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 8ea8e4fc76f69aaa122b19cf1a9b12b5c6c38719 (diff) | |
download | bcm5719-llvm-73a3fab480de3804b755d50e427f5d2cda0b6866.tar.gz bcm5719-llvm-73a3fab480de3804b755d50e427f5d2cda0b6866.zip |
Add comment.
llvm-svn: 147696
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 1e7bf667d4e..bfb6dfa0b17 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -903,6 +903,10 @@ static bool isFoldedOrDeadInstruction(const Instruction *I, } #ifndef NDEBUG +// Collect per Instruction statistics for fast-isel misses. Only those +// instructions that cause the bail are accounted for. It does not account for +// instructions higher in the block. Thus, summing the per instructions stats +// will not add up to what is reported by NumFastIselFailures. static void collectFailStats(const Instruction *I) { switch (I->getOpcode()) { default: assert (0 && "<Invalid operator> "); |