Lines Matching refs:SourceAggregate
958 auto Describe = [](std::optional<Value *> SourceAggregate) { in foldAggregateConstructionIntoAggregateReuse() argument
959 if (SourceAggregate == NotFound) in foldAggregateConstructionIntoAggregateReuse()
961 if (*SourceAggregate == FoundMismatch) in foldAggregateConstructionIntoAggregateReuse()
984 Value *SourceAggregate = EVI->getAggregateOperand(); in foldAggregateConstructionIntoAggregateReuse() local
987 if (SourceAggregate->getType() != AggTy) in foldAggregateConstructionIntoAggregateReuse()
993 return SourceAggregate; // AggregateDescription::Found in foldAggregateConstructionIntoAggregateReuse()
1002 std::optional<Value *> SourceAggregate; in foldAggregateConstructionIntoAggregateReuse() local
1005 assert(Describe(SourceAggregate) != AggregateDescription::FoundMismatch && in foldAggregateConstructionIntoAggregateReuse()
1007 assert((Describe(SourceAggregate) == AggregateDescription::Found) == in foldAggregateConstructionIntoAggregateReuse()
1027 switch (Describe(SourceAggregate)) { in foldAggregateConstructionIntoAggregateReuse()
1030 SourceAggregate = SourceAggregateForElement; // Record the aggregate! in foldAggregateConstructionIntoAggregateReuse()
1035 if (*SourceAggregateForElement != *SourceAggregate) in foldAggregateConstructionIntoAggregateReuse()
1043 assert(Describe(SourceAggregate) == AggregateDescription::Found && in foldAggregateConstructionIntoAggregateReuse()
1045 return *SourceAggregate; in foldAggregateConstructionIntoAggregateReuse()
1048 std::optional<Value *> SourceAggregate; in foldAggregateConstructionIntoAggregateReuse() local
1051 SourceAggregate = FindCommonSourceAggregate(/*UseBB=*/std::nullopt, in foldAggregateConstructionIntoAggregateReuse()
1053 if (Describe(SourceAggregate) != AggregateDescription::NotFound) { in foldAggregateConstructionIntoAggregateReuse()
1054 if (Describe(SourceAggregate) == AggregateDescription::FoundMismatch) in foldAggregateConstructionIntoAggregateReuse()
1057 return replaceInstUsesWith(OrigIVI, *SourceAggregate); in foldAggregateConstructionIntoAggregateReuse()
1119 SourceAggregate = FindCommonSourceAggregate(UseBB, Pred); in foldAggregateConstructionIntoAggregateReuse()
1120 if (Describe(SourceAggregate) != AggregateDescription::Found) in foldAggregateConstructionIntoAggregateReuse()
1122 IV.first->second = *SourceAggregate; in foldAggregateConstructionIntoAggregateReuse()