@@ -107,15 +107,6 @@ getIndexedConsumerToProducerMap(Fusion* fusion, const ComputeAtMap& ca_map) {
107107 return indexed_id_map;
108108}
109109
110- std::vector<IterDomain*> getSchedulingIds (TensorView* tv) {
111- // if (tv->isDefinitionType<PreprocessGroupedMatmulInputSf>() &&
112- // (tv->definition()->as<PreprocessGroupedMatmulInputSf>()->inputOffsets() == tv ||
113- // tv->definition()->as<PreprocessGroupedMatmulInputSf>()->outputOffsets() == tv)) {
114- // return tv->getMaybeRootDomain();
115- // }
116- return tv->getLogicalDomain ();
117- }
118-
119110} // namespace
120111
121112DomainMap::DomainMap (Fusion* fusion) : fusion_(fusion), ca_map_(fusion) {
@@ -145,7 +136,7 @@ bool DomainMap::areAllInputIdsMappedTo(TensorView* input_tv, TensorView* tv)
145136 // Erase all input concrete IDs mapped to the output domain
146137 // Ignore unresolved broadcast dimensions
147138 eraseifInputMappedThroughRootDomainAndIndexing (
148- in_concrete_ids, getSchedulingIds (tv ));
139+ in_concrete_ids, tv-> getMaybeLogicalDomain ( ));
149140
150141 return in_concrete_ids.empty ();
151142}
@@ -224,7 +215,7 @@ bool DomainMap::areAllTargetIdsCoveredBy(
224215 // it's safe for target_tv to have them.
225216 std::unordered_set<IterDomain*> covered_source_ids;
226217 for (IterDomain* source_id_ref :
227- get_source_iter_domains (getSchedulingIds ( reference_tv))) {
218+ get_source_iter_domains (reference_tv-> getMaybeLogicalDomain ( ))) {
228219 covered_source_ids.insert (source_id_ref);
229220 }
230221 // It's safe to have unmapped broadcast IterDomain. There're quite a few tests
0 commit comments