summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-07 23:47:25 +0000
committerDan Gohman <gohman@apple.com>2010-07-07 23:47:25 +0000
commit1adc499dda1f0f38c7cb0e3b7ab85f374c3fc788 (patch)
treecb837bc5255965248943041a87bf0b3ae366cef4 /llvm/lib
parentbbace2a63dcc14c782dd99519bb1202c58908668 (diff)
downloadbcm5719-llvm-1adc499dda1f0f38c7cb0e3b7ab85f374c3fc788.tar.gz
bcm5719-llvm-1adc499dda1f0f38c7cb0e3b7ab85f374c3fc788.zip
Fix -fast-isel-abort to check the right instruction.
llvm-svn: 107839
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 8918516e75f..f3a7f7d0712 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -737,7 +737,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) {
// Otherwise, give up on FastISel for the rest of the block.
// For now, be a little lenient about non-branch terminators.
- if (!isa<TerminatorInst>(BI) || isa<BranchInst>(BI)) {
+ if (!isa<TerminatorInst>(Inst) || isa<BranchInst>(Inst)) {
++NumFastIselFailures;
if (EnableFastISelVerbose || EnableFastISelAbort) {
dbgs() << "FastISel miss: ";
OpenPOWER on IntegriCloud