Lines Matching refs:SourceAggregate
865 auto Describe = [](Optional<Value *> SourceAggregate) { in foldAggregateConstructionIntoAggregateReuse() argument
866 if (SourceAggregate == NotFound) in foldAggregateConstructionIntoAggregateReuse()
868 if (*SourceAggregate == FoundMismatch) in foldAggregateConstructionIntoAggregateReuse()
891 Value *SourceAggregate = EVI->getAggregateOperand(); in foldAggregateConstructionIntoAggregateReuse() local
894 if (SourceAggregate->getType() != AggTy) in foldAggregateConstructionIntoAggregateReuse()
900 return SourceAggregate; // AggregateDescription::Found in foldAggregateConstructionIntoAggregateReuse()
909 Optional<Value *> SourceAggregate; in foldAggregateConstructionIntoAggregateReuse() local
912 assert(Describe(SourceAggregate) != AggregateDescription::FoundMismatch && in foldAggregateConstructionIntoAggregateReuse()
914 assert((Describe(SourceAggregate) == AggregateDescription::Found) == in foldAggregateConstructionIntoAggregateReuse()
934 switch (Describe(SourceAggregate)) { in foldAggregateConstructionIntoAggregateReuse()
937 SourceAggregate = SourceAggregateForElement; // Record the aggregate! in foldAggregateConstructionIntoAggregateReuse()
942 if (*SourceAggregateForElement != *SourceAggregate) in foldAggregateConstructionIntoAggregateReuse()
950 assert(Describe(SourceAggregate) == AggregateDescription::Found && in foldAggregateConstructionIntoAggregateReuse()
952 return *SourceAggregate; in foldAggregateConstructionIntoAggregateReuse()
955 Optional<Value *> SourceAggregate; in foldAggregateConstructionIntoAggregateReuse() local
958 SourceAggregate = FindCommonSourceAggregate(/*UseBB=*/None, /*PredBB=*/None); in foldAggregateConstructionIntoAggregateReuse()
959 if (Describe(SourceAggregate) != AggregateDescription::NotFound) { in foldAggregateConstructionIntoAggregateReuse()
960 if (Describe(SourceAggregate) == AggregateDescription::FoundMismatch) in foldAggregateConstructionIntoAggregateReuse()
963 return replaceInstUsesWith(OrigIVI, *SourceAggregate); in foldAggregateConstructionIntoAggregateReuse()
1025 SourceAggregate = FindCommonSourceAggregate(UseBB, Pred); in foldAggregateConstructionIntoAggregateReuse()
1026 if (Describe(SourceAggregate) != AggregateDescription::Found) in foldAggregateConstructionIntoAggregateReuse()
1028 IV.first->second = *SourceAggregate; in foldAggregateConstructionIntoAggregateReuse()