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 | b6aef419b4966bf69a0754b44b91ab3f066b7361 (patch) | |
tree | 370babda0cdae2bb6b6388892586465dce933fd9 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 7164e9a7026e5d7ff064e5bf810e6a51a48cfda9 (diff) | |
download | bcm5719-llvm-b6aef419b4966bf69a0754b44b91ab3f066b7361.tar.gz bcm5719-llvm-b6aef419b4966bf69a0754b44b91ab3f066b7361.zip |
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.
llvm-svn: 55977
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 344b91cf82c..a2716c2706c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/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 |