Revert rG632668c1c0e7dcf97154d2e377491cdc8cb6963c : "[TableGen] TreePatternNode::isIsomorphicTo - early out for matching leafs. NFCI."

Revert premature (and very broken....) experimental commit.
This commit is contained in:
Simon Pilgrim 2021-05-15 15:49:14 +01:00
parent 632668c1c0
commit bd7b7ca3ee
1 changed files with 1 additions and 3 deletions

View File

@ -1946,8 +1946,6 @@ bool TreePatternNode::isIsomorphicTo(const TreePatternNode *N,
return false;
if (isLeaf()) {
if (getLeafValue() == N->getLeafValue())
return true;
if (DefInit *DI = dyn_cast<DefInit>(getLeafValue())) {
if (DefInit *NDI = dyn_cast<DefInit>(N->getLeafValue())) {
return ((DI->getDef() == NDI->getDef())
@ -1955,7 +1953,7 @@ bool TreePatternNode::isIsomorphicTo(const TreePatternNode *N,
|| getName() == N->getName()));
}
}
return false;
return getLeafValue() == N->getLeafValue();
}
if (N->getOperator() != getOperator() ||