[llvm] r364091 - [X86] Add a debug print of the node in the default case for unhandled opcodes in ReplaceNodeResults.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 21 11:49:21 PDT 2019
Author: ctopper
Date: Fri Jun 21 11:49:21 2019
New Revision: 364091
URL: http://llvm.org/viewvc/llvm-project?rev=364091&view=rev
Log:
[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.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=364091&r1=364090&r2=364091&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Jun 21 11:49:21 2019
@@ -27262,6 +27262,10 @@ void X86TargetLowering::ReplaceNodeResul
SDLoc dl(N);
switch (N->getOpcode()) {
default:
+#ifndef NDEBUG
+ dbgs() << "ReplaceNodeResults: ";
+ N->dump(&DAG);
+#endif
llvm_unreachable("Do not know how to custom type legalize this operation!");
case ISD::CTPOP: {
assert(N->getValueType(0) == MVT::i64 && "Unexpected VT!");
More information about the llvm-commits
mailing list