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 | ff6f2bc8452b9fed3bc951818fa1b5b62cb13862 (patch) | |
| tree | 37ff8c3ec91ebaaf7c4e539c42386c5f9ef85dd4 /lib | |
| parent | 7b880dc38cc2ba5ddd18c44f716ec87b58d0f484 (diff) | |
| download | external_llvm-ff6f2bc8452b9fed3bc951818fa1b5b62cb13862.zip external_llvm-ff6f2bc8452b9fed3bc951818fa1b5b62cb13862.tar.gz external_llvm-ff6f2bc8452b9fed3bc951818fa1b5b62cb13862.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')
| -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: "; |
