1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Stop emitting a redudant type check for complex pattern node.

llvm-svn: 24655
This commit is contained in:
Evan Cheng 2005-12-10 01:57:33 +00:00
parent 56f62789d7
commit c8ebe5f6eb

View 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);