forked from OSchip/llvm-project
Revert rG632668c1c0e7dcf97154d2e377491cdc8cb6963c : "[TableGen] TreePatternNode::isIsomorphicTo - early out for matching leafs. NFCI."
Revert premature (and very broken....) experimental commit.
This commit is contained in:
parent
632668c1c0
commit
bd7b7ca3ee
|
@ -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() ||
|
||||
|
|
Loading…
Reference in New Issue