From: Evan Cheng Date: Sat, 10 Dec 2005 01:57:33 +0000 (+0000) Subject: Stop emitting a redudant type check for complex pattern node. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ba7fa0b5d484f5ba926eca8432ae1d667693d657;p=oota-llvm.git 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 --- 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);