| 1081 | } |
| 1082 | |
| 1083 | void CompSeqManager::reset_dest(CompSeqExtraInfo& info) { |
| 1084 | m_static_first_run = true; |
| 1085 | m_added.clear(); |
| 1086 | m_static_infer_const_needed.clear(); |
| 1087 | m_static_srcnode.clear(); |
| 1088 | m_static_mid.clear(); |
| 1089 | info.missing_for_shape.clear(); |
| 1090 | info.missing_for_value.clear(); |
| 1091 | |
| 1092 | for (auto&& i : info.infer_dest) { |
| 1093 | mgb_assert(i->tag()->owner_graph() == m_owner_graph); |
| 1094 | add_dest(info, static_cast<TagTraitBase*>(i)); |
| 1095 | } |
| 1096 | |
| 1097 | info.rt_static_infer_src.clear(); |
| 1098 | for (auto&& i : m_static_srcnode) { |
| 1099 | auto trait = i.trait(); |
| 1100 | if (trait->infer_type() & InferType::RT_STATIC) { |
| 1101 | info.rt_static_infer_src.push_back({trait->tag(), trait->handler_type()}); |
| 1102 | } |
| 1103 | } |
| 1104 | } |
| 1105 | |
| 1106 | bool CompSeqManager::update_static_check_shape_change() { |
| 1107 | if (m_static_first_run) { |
no test coverage detected