Commit 531a48d6 by 雾雨魔理沙 Committed by Tianqi Chen

Fix error in fuse_ops.cc (#2098)

parent 0c3c29e4
...@@ -322,7 +322,7 @@ class DominatorTree { ...@@ -322,7 +322,7 @@ class DominatorTree {
* The combined edge pattern across all the parents. * The combined edge pattern across all the parents.
* \return The least common acenstor of thw two. * \return The least common acenstor of thw two.
*/ */
static Node* LeastCommonAcenstor( static Node* LeastCommonAncestor(
Node* lhs, Node* lhs,
Node* rhs, Node* rhs,
OpPatternKind* edge_pattern) { OpPatternKind* edge_pattern) {
...@@ -338,12 +338,12 @@ class DominatorTree { ...@@ -338,12 +338,12 @@ class DominatorTree {
edge_pattern[0], lhs->pattern); edge_pattern[0], lhs->pattern);
lhs = lhs->parent; lhs = lhs->parent;
} else { } else {
lhs = lhs->parent;
rhs = rhs->parent;
edge_pattern[0] = CombinePattern( edge_pattern[0] = CombinePattern(
edge_pattern[0], lhs->pattern); edge_pattern[0], lhs->pattern);
edge_pattern[0] = CombinePattern( edge_pattern[0] = CombinePattern(
edge_pattern[0], rhs->pattern); edge_pattern[0], rhs->pattern);
lhs = lhs->parent;
rhs = rhs->parent;
} }
} }
return lhs; return lhs;
...@@ -374,7 +374,7 @@ DominatorTree DominatorTree::PostDom(common::Arena* arena, ...@@ -374,7 +374,7 @@ DominatorTree DominatorTree::PostDom(common::Arena* arena,
Node* onode = tree.nodes[oindex]; Node* onode = tree.nodes[oindex];
CHECK(onode != nullptr); CHECK(onode != nullptr);
if (parent != nullptr) { if (parent != nullptr) {
parent = LeastCommonAcenstor(parent, onode, &pattern); parent = LeastCommonAncestor(parent, onode, &pattern);
} else { } else {
parent = onode; parent = onode;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment