projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ea8e4f
)
Add comment.
author
Chad Rosier
<mcrosier@apple.com>
Fri, 6 Jan 2012 23:45:47 +0000
(23:45 +0000)
committer
Chad Rosier
<mcrosier@apple.com>
Fri, 6 Jan 2012 23:45:47 +0000
(23:45 +0000)
llvm-svn: 147696
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index
1e7bf66
..
bfb6dfa
100644
(file)
--- 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> ");