diff options
author | Dan Gohman <gohman@apple.com> | 2008-09-09 02:40:04 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-09-09 02:40:04 +0000 |
commit | cf01f7a78c18224866595b4b493d03a3de305e1f (patch) | |
tree | 693046fe258dbd5b5e5e25403e86d4d29d9ab2b2 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | be919409ccbf166340fe8484fc95efc903e56699 (diff) | |
download | llvm-cf01f7a78c18224866595b4b493d03a3de305e1f.tar.gz llvm-cf01f7a78c18224866595b4b493d03a3de305e1f.tar.bz2 llvm-cf01f7a78c18224866595b4b493d03a3de305e1f.tar.xz |
Remove the code that protected FastISel from aborting in
the case of loads, stores, and conditional branches. It can
handle those now, so any that aren't handled should trigger
the abort.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 344b91cf82..a2716c2706 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -760,8 +760,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, MachineFunction &MF) { continue; // Then handle certain instructions as single-LLVM-Instruction blocks. - if (isa<CallInst>(BI) || isa<LoadInst>(BI) || - isa<StoreInst>(BI)) { + if (isa<CallInst>(BI)) { if (BI->getType() != Type::VoidTy) { unsigned &R = FuncInfo->ValueMap[BI]; if (!R) @@ -774,9 +773,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, MachineFunction &MF) { if (!DisableFastISelAbort && // For now, don't abort on non-conditional-branch terminators. - (!isa<TerminatorInst>(BI) || - (isa<BranchInst>(BI) && - cast<BranchInst>(BI)->isUnconditional()))) { + (!isa<TerminatorInst>(BI) || isa<BranchInst>(BI))) { // The "fast" selector couldn't handle something and bailed. // For the purpose of debugging, just abort. #ifndef NDEBUG |