Provide function name in 'Cannot select' fatal error.
When dumping the DAG for a fatal 'Cannot select' back-end error, also provide the name of the function the construct is in. Useful when dealing with large testcases, as the next step is to llvm-extract the function in question to get a small(er) testcase. llvm-svn: 160152
This commit is contained in:
parent
4592cbc473
commit
1af8c8060c
|
@ -2981,6 +2981,7 @@ void SelectionDAGISel::CannotYetSelect(SDNode *N) {
|
||||||
N->getOpcode() != ISD::INTRINSIC_WO_CHAIN &&
|
N->getOpcode() != ISD::INTRINSIC_WO_CHAIN &&
|
||||||
N->getOpcode() != ISD::INTRINSIC_VOID) {
|
N->getOpcode() != ISD::INTRINSIC_VOID) {
|
||||||
N->printrFull(Msg, CurDAG);
|
N->printrFull(Msg, CurDAG);
|
||||||
|
Msg << "\nIn function: " << MF->getFunction()->getName();
|
||||||
} else {
|
} else {
|
||||||
bool HasInputChain = N->getOperand(0).getValueType() == MVT::Other;
|
bool HasInputChain = N->getOperand(0).getValueType() == MVT::Other;
|
||||||
unsigned iid =
|
unsigned iid =
|
||||||
|
|
Loading…
Reference in New Issue