Stop emitting a redudant type check for complex pattern node.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 10 Dec 2005 01:57:33 +0000 (01:57 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 10 Dec 2005 01:57:33 +0000 (01:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24655 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DAGISelEmitter.cpp

index 3d64fa7bbc5b1eb0ab7169fbe7059e856f1d106c..a5947a7d50f8bc8c0b09d52393c66ea0a899b10f 100644 (file)
@@ -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);