diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-04-25 08:55:28 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-04-25 08:55:28 +0000 |
commit | 419ace9bda6abaaa65560708064b210b4e48880f (patch) | |
tree | 4ee0c70dbdcfbee6959e558964c732e59e270acc | |
parent | cdda25d22b348b0e8ef14a5e5e7d3e5f1d41c690 (diff) | |
download | external_llvm-419ace9bda6abaaa65560708064b210b4e48880f.zip external_llvm-419ace9bda6abaaa65560708064b210b4e48880f.tar.gz external_llvm-419ace9bda6abaaa65560708064b210b4e48880f.tar.bz2 |
Not checking for intrinsics which do not have a chain operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50260 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86ISelDAGToDAG.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index 1ca1e31..8286cd0 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/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; |