From 59834d1c7a98fc13153169188c6e3174d2c2f458 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 25 Apr 2008 08:55:28 +0000 Subject: [PATCH] Not checking for intrinsics which do not have a chain operand. llvm-svn: 50260 --- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp index 1ca1e311449f..8286cd05a035 100644 --- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -255,11 +255,12 @@ static void findNonImmUse(SDNode *Use, SDNode* Def, SDNode *ImmedUse, continue; if (N == Def) { if (Use == ImmedUse) - continue; // We are not looking for immediate use. + continue; // We are not looking for immediate use. if (Use == Root) { + // Must be a chain reading node where it is possible to reach its own + // chain operand through a path started from another operand. assert(Use->getOpcode() == ISD::STORE || Use->getOpcode() == X86ISD::CMP || - Use->getOpcode() == ISD::INTRINSIC_WO_CHAIN || Use->getOpcode() == ISD::INTRINSIC_W_CHAIN || Use->getOpcode() == ISD::INTRINSIC_VOID); continue; -- GitLab