forked from OSchip/llvm-project
[GISel]: Print more fallback information when aborting
Currently when abort is enabled, we get a diagnostic saying "Fallback path used .... " and the program terminates. To actually figure out what the reason is, we need to run again with another verbose argument "-pass-remarks-missed=gisel". Instead, when we are going to abort, we might as well print expensive remarks. https://reviews.llvm.org/D43796 llvm-svn: 326215
This commit is contained in:
parent
28efd27fe2
commit
abf7594099
|
@ -168,7 +168,7 @@ void llvm::reportGISelFailure(MachineFunction &MF, const TargetPassConfig &TPC,
|
|||
MI.getDebugLoc(), MI.getParent());
|
||||
R << Msg;
|
||||
// Printing MI is expensive; only do it if expensive remarks are enabled.
|
||||
if (MORE.allowExtraAnalysis(PassName))
|
||||
if (TPC.isGlobalISelAbortEnabled() || MORE.allowExtraAnalysis(PassName))
|
||||
R << ": " << ore::MNV("Inst", MI);
|
||||
reportGISelFailure(MF, TPC, MORE, R);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue