]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commitdiff
Provide function name in 'Cannot select' fatal error.
authorJim Grosbach <grosbach@apple.com>
Fri, 13 Jul 2012 00:29:09 +0000 (00:29 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 13 Jul 2012 00:29:09 +0000 (00:29 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160152 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 90f2bd37b237c9471627ae8d693f765d16df626a..287c679f97535365a1351b19ca5cc9e4c2ae7899 100644 (file)
@@ -2981,6 +2981,7 @@ void SelectionDAGISel::CannotYetSelect(SDNode *N) {
       N->getOpcode() != ISD::INTRINSIC_WO_CHAIN &&
       N->getOpcode() != ISD::INTRINSIC_VOID) {
     N->printrFull(Msg, CurDAG);
+    Msg << "\nIn function: " << MF->getFunction()->getName();
   } else {
     bool HasInputChain = N->getOperand(0).getValueType() == MVT::Other;
     unsigned iid =