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
This commit is contained in:
Dan Gohman 2008-09-09 02:40:04 +00:00
parent 7164e9a702
commit b6aef419b4
1 changed files with 2 additions and 5 deletions

View File

@ -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