summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2005-12-10 01:57:33 +0000
committerEvan Cheng <evan.cheng@apple.com>2005-12-10 01:57:33 +0000
commit0da396ffe26aebfd2c09c8798d4c29e8406029f4 (patch)
tree36be0a1ecf23d6355c46509e926449d8cde37abe /llvm/utils
parent0d6cfee7046ffab818e9781020fe2646ad3c744b (diff)
downloadbcm5719-llvm-0da396ffe26aebfd2c09c8798d4c29e8406029f4.tar.gz
bcm5719-llvm-0da396ffe26aebfd2c09c8798d4c29e8406029f4.zip
Stop emitting a redudant type check for complex pattern node.
llvm-svn: 24655
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index 3d64fa7bbc5..a5947a7d50f 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud