[GlobalISel] Don't translate other blocks when one failed.

We were stopping the translation of the parent block when the
translation of an instruction failed, but we were still trying to
translate the other blocks of the parent function.

Don't do that.

llvm-svn: 296047
This commit is contained in:
Ahmed Bougacha 2017-02-23 23:57:36 +00:00
parent eceabddcfd
commit 4f8dd0202d
1 changed files with 28 additions and 30 deletions

View File

@ -1076,12 +1076,11 @@ bool IRTranslator::runOnMachineFunction(MachineFunction &CurMF) {
R << "unable to translate instruction: " << ore::NV("Opcode", &Inst)
<< ": '" << InstStr.str() << "'";
reportTranslationError(*MF, *TPC, *ORE, R);
break;
return false;
}
}
}
if (Succeeded) {
finishPendingPhis();
// Now that the MachineFrameInfo has been configured, no further changes to
@ -1114,7 +1113,6 @@ bool IRTranslator::runOnMachineFunction(MachineFunction &CurMF) {
assert(&MF->front() == &NewEntryBB &&
"New entry wasn't next in the list of basic block!");
}
return false;
}