diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-07 23:47:25 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-07 23:47:25 +0000 |
commit | 61b7cea126a0178045839093c98f7a75b6620b72 (patch) | |
tree | 37ff8c3ec91ebaaf7c4e539c42386c5f9ef85dd4 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 8fff12605e125e264bca213e748e1ec972437a55 (diff) | |
download | external_llvm-61b7cea126a0178045839093c98f7a75b6620b72.zip external_llvm-61b7cea126a0178045839093c98f7a75b6620b72.tar.gz external_llvm-61b7cea126a0178045839093c98f7a75b6620b72.tar.bz2 |
Fix -fast-isel-abort to check the right instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 8918516..f3a7f7d 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/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: "; |