Lines Matching refs:SourceAggregate
922 auto Describe = [](Optional<Value *> SourceAggregate) { in foldAggregateConstructionIntoAggregateReuse() argument
923 if (SourceAggregate == NotFound) in foldAggregateConstructionIntoAggregateReuse()
925 if (*SourceAggregate == FoundMismatch) in foldAggregateConstructionIntoAggregateReuse()
948 Value *SourceAggregate = EVI->getAggregateOperand(); in foldAggregateConstructionIntoAggregateReuse() local
951 if (SourceAggregate->getType() != AggTy) in foldAggregateConstructionIntoAggregateReuse()
957 return SourceAggregate; // AggregateDescription::Found in foldAggregateConstructionIntoAggregateReuse()
966 Optional<Value *> SourceAggregate; in foldAggregateConstructionIntoAggregateReuse() local
969 assert(Describe(SourceAggregate) != AggregateDescription::FoundMismatch && in foldAggregateConstructionIntoAggregateReuse()
971 assert((Describe(SourceAggregate) == AggregateDescription::Found) == in foldAggregateConstructionIntoAggregateReuse()
991 switch (Describe(SourceAggregate)) { in foldAggregateConstructionIntoAggregateReuse()
994 SourceAggregate = SourceAggregateForElement; // Record the aggregate! in foldAggregateConstructionIntoAggregateReuse()
999 if (*SourceAggregateForElement != *SourceAggregate) in foldAggregateConstructionIntoAggregateReuse()
1007 assert(Describe(SourceAggregate) == AggregateDescription::Found && in foldAggregateConstructionIntoAggregateReuse()
1009 return *SourceAggregate; in foldAggregateConstructionIntoAggregateReuse()
1012 Optional<Value *> SourceAggregate; in foldAggregateConstructionIntoAggregateReuse() local
1015 SourceAggregate = FindCommonSourceAggregate(/*UseBB=*/None, /*PredBB=*/None); in foldAggregateConstructionIntoAggregateReuse()
1016 if (Describe(SourceAggregate) != AggregateDescription::NotFound) { in foldAggregateConstructionIntoAggregateReuse()
1017 if (Describe(SourceAggregate) == AggregateDescription::FoundMismatch) in foldAggregateConstructionIntoAggregateReuse()
1020 return replaceInstUsesWith(OrigIVI, *SourceAggregate); in foldAggregateConstructionIntoAggregateReuse()
1082 SourceAggregate = FindCommonSourceAggregate(UseBB, Pred); in foldAggregateConstructionIntoAggregateReuse()
1083 if (Describe(SourceAggregate) != AggregateDescription::Found) in foldAggregateConstructionIntoAggregateReuse()
1085 IV.first->second = *SourceAggregate; in foldAggregateConstructionIntoAggregateReuse()