Lines Matching refs:SourceAggregate

951   auto Describe = [](std::optional<Value *> SourceAggregate) {  in foldAggregateConstructionIntoAggregateReuse()  argument
952 if (SourceAggregate == NotFound) in foldAggregateConstructionIntoAggregateReuse()
954 if (*SourceAggregate == FoundMismatch) in foldAggregateConstructionIntoAggregateReuse()
977 Value *SourceAggregate = EVI->getAggregateOperand(); in foldAggregateConstructionIntoAggregateReuse() local
980 if (SourceAggregate->getType() != AggTy) in foldAggregateConstructionIntoAggregateReuse()
986 return SourceAggregate; // AggregateDescription::Found in foldAggregateConstructionIntoAggregateReuse()
995 std::optional<Value *> SourceAggregate; in foldAggregateConstructionIntoAggregateReuse() local
998 assert(Describe(SourceAggregate) != AggregateDescription::FoundMismatch && in foldAggregateConstructionIntoAggregateReuse()
1000 assert((Describe(SourceAggregate) == AggregateDescription::Found) == in foldAggregateConstructionIntoAggregateReuse()
1020 switch (Describe(SourceAggregate)) { in foldAggregateConstructionIntoAggregateReuse()
1023 SourceAggregate = SourceAggregateForElement; // Record the aggregate! in foldAggregateConstructionIntoAggregateReuse()
1028 if (*SourceAggregateForElement != *SourceAggregate) in foldAggregateConstructionIntoAggregateReuse()
1036 assert(Describe(SourceAggregate) == AggregateDescription::Found && in foldAggregateConstructionIntoAggregateReuse()
1038 return *SourceAggregate; in foldAggregateConstructionIntoAggregateReuse()
1041 std::optional<Value *> SourceAggregate; in foldAggregateConstructionIntoAggregateReuse() local
1044 SourceAggregate = FindCommonSourceAggregate(/*UseBB=*/std::nullopt, in foldAggregateConstructionIntoAggregateReuse()
1046 if (Describe(SourceAggregate) != AggregateDescription::NotFound) { in foldAggregateConstructionIntoAggregateReuse()
1047 if (Describe(SourceAggregate) == AggregateDescription::FoundMismatch) in foldAggregateConstructionIntoAggregateReuse()
1050 return replaceInstUsesWith(OrigIVI, *SourceAggregate); in foldAggregateConstructionIntoAggregateReuse()
1112 SourceAggregate = FindCommonSourceAggregate(UseBB, Pred); in foldAggregateConstructionIntoAggregateReuse()
1113 if (Describe(SourceAggregate) != AggregateDescription::Found) in foldAggregateConstructionIntoAggregateReuse()
1115 IV.first->second = *SourceAggregate; in foldAggregateConstructionIntoAggregateReuse()