forked from OSchip/llvm-project
[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:
parent
eceabddcfd
commit
4f8dd0202d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue