diff options
author | ziganshinmr <[email protected]> | 2025-08-14 17:48:49 +0300 |
---|---|---|
committer | ziganshinmr <[email protected]> | 2025-08-14 18:03:45 +0300 |
commit | 271d480a7a165b697136c2b014886449d6510b36 (patch) | |
tree | f30502fe1917d2d5446b1572288d18fda9986d2a /yql/essentials/ast/yql_expr.cpp | |
parent | 698e8e853d049870b79e73921f1b324fcff152d7 (diff) |
Forbid fuse maps with DependsOn loss in peephole
commit_hash:bbf47867e6f6f8279028477731530945b414993b
Diffstat (limited to 'yql/essentials/ast/yql_expr.cpp')
-rw-r--r-- | yql/essentials/ast/yql_expr.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/yql/essentials/ast/yql_expr.cpp b/yql/essentials/ast/yql_expr.cpp index 4c596895077..97bd2f294ea 100644 --- a/yql/essentials/ast/yql_expr.cpp +++ b/yql/essentials/ast/yql_expr.cpp @@ -2300,22 +2300,6 @@ const TTypeAnnotationNode* CompileTypeAnnotation(const TAstNode& node, TExprCont return compileCtx.CompileTypeAnnotationNode(node); } -template<class Set> -bool IsDependedImpl(const TExprNode& node, const Set& dependences, TNodeSet& visited) { - if (!visited.emplace(&node).second) - return false; - - if (dependences.cend() != dependences.find(&node)) - return true; - - for (const auto& child : node.Children()) { - if (IsDependedImpl(*child, dependences, visited)) - return true; - } - - return false; -} - namespace { enum EChangeState : ui8 { @@ -2651,11 +2635,6 @@ TExprNode::TListType TExprContext::ReplaceNodes(TExprNode::TListType&& starts, c template TExprNode::TListType TExprContext::ReplaceNodes<true>(TExprNode::TListType&& starts, const TNodeOnNodeOwnedMap& replaces); template TExprNode::TListType TExprContext::ReplaceNodes<false>(TExprNode::TListType&& starts, const TNodeOnNodeOwnedMap& replaces); -bool IsDepended(const TExprNode& node, const TNodeSet& dependences) { - TNodeSet visited; - return !dependences.empty() && IsDependedImpl(node, dependences, visited); -} - void CheckArguments(const TExprNode& root) { try { TNodeMap<TNodeSetPtr> unresolvedArgsMap; |