Skip to content

Commit ce6c06d

Browse files
committed
[X86] Add a debug print of the node in the default case for unhandled opcodes in ReplaceNodeResults.
This should be unreachable, but bugs can make it reachable. This adds a debug print so we can see the bad node in the output when the llvm_unreachable triggers. llvm-svn: 364091
1 parent 5dba4ed commit ce6c06d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27262,6 +27262,10 @@ void X86TargetLowering::ReplaceNodeResults(SDNode *N,
2726227262
SDLoc dl(N);
2726327263
switch (N->getOpcode()) {
2726427264
default:
27265+
#ifndef NDEBUG
27266+
dbgs() << "ReplaceNodeResults: ";
27267+
N->dump(&DAG);
27268+
#endif
2726527269
llvm_unreachable("Do not know how to custom type legalize this operation!");
2726627270
case ISD::CTPOP: {
2726727271
assert(N->getValueType(0) == MVT::i64 && "Unexpected VT!");

0 commit comments

Comments
 (0)