From ba7fa0b5d484f5ba926eca8432ae1d667693d657 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sat, 10 Dec 2005 01:57:33 +0000 Subject: [PATCH] Stop emitting a redudant type check for complex pattern node. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24655 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/DAGISelEmitter.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index 3d64fa7bbc5..a5947a7d50f 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -2091,11 +2091,6 @@ public: OS << " if (" << Prefix << ".Val->getValueType(0) != MVT::" << getName(Pat->getType()) << ") goto P" << PatternNo << "Fail;\n"; return true; - } else if (Pat->isLeaf()) { - if (NodeIsComplexPattern(Pat)) - OS << " if (" << Prefix << ".Val->getValueType(0) != MVT::" - << getName(Pat->getType()) << ") goto P" << PatternNo << "Fail;\n"; - return false; } unsigned OpNo = (unsigned) NodeHasChain(Pat, ISE);