Lines Matching refs:Loads
122 for (auto &Loads : LoadMap) { in combineLoads() local
123 if (Loads.second.size() < 2) in combineLoads()
125 std::sort(Loads.second.begin(), Loads.second.end(), in combineLoads()
129 if (aggregateLoads(Loads.second)) in combineLoads()
139 bool LoadCombine::aggregateLoads(SmallVectorImpl<LoadPOPPair> &Loads) { in aggregateLoads() argument
140 assert(Loads.size() >= 2 && "Insufficient loads!"); in aggregateLoads()
147 for (auto &L : Loads) { in aggregateLoads()
183 bool LoadCombine::combineLoads(SmallVectorImpl<LoadPOPPair> &Loads) { in combineLoads() argument
186 for (const auto &L : Loads) in combineLoads()
189 TotalSize -= Loads.pop_back_val().Load->getType()->getPrimitiveSizeInBits(); in combineLoads()
190 if (Loads.size() < 2) in combineLoads()
195 for (const auto &L : Loads) { in combineLoads()
203 for (const auto &L : Loads) in combineLoads()
212 Builder->CreatePointerCast(Loads[0].POP.Pointer, in combineLoads()
214 Loads[0].POP.Offset.getSExtValue()); in combineLoads()
219 Twine(Loads[0].Load->getName()) + ".combined", false, in combineLoads()
220 Loads[0].Load->getAlignment(), FirstLP.Load); in combineLoads()
222 for (const auto &L : Loads) { in combineLoads()
227 (L.POP.Offset - Loads[0].POP.Offset).getZExtValue(), "combine.extract"); in combineLoads()
231 NumLoadsCombined = NumLoadsCombined + Loads.size(); in combineLoads()