diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2005-12-10 01:57:33 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2005-12-10 01:57:33 +0000 |
| commit | 0da396ffe26aebfd2c09c8798d4c29e8406029f4 (patch) | |
| tree | 36be0a1ecf23d6355c46509e926449d8cde37abe /llvm/utils | |
| parent | 0d6cfee7046ffab818e9781020fe2646ad3c744b (diff) | |
| download | bcm5719-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.cpp | 5 |
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); |

