| 61 | } |
| 62 | |
| 63 | const InplaceLbiNode* GetRoot(const HashSet<const InplaceLbiNode*>& nodes, |
| 64 | const std::function<bool(const InplaceLbiEdge*)>& IsValidEdge) { |
| 65 | const InplaceLbiNode* root = nullptr; |
| 66 | for (const InplaceLbiNode* node : nodes) { |
| 67 | if (node->GetValidInEdge(IsValidEdge) == nullptr) { |
| 68 | CHECK_ISNULL(root); |
| 69 | root = node; |
| 70 | } |
| 71 | } |
| 72 | return root; |
| 73 | } |
| 74 | |
| 75 | const InplaceLbiNode* FindSoleIsMutableIbnConsumer(const SourceOpInplaceLbiNode* node) { |
| 76 | const InplaceLbiNode* ret = nullptr; |
no test coverage detected