Lines Matching refs:Invariants
161 TinyPtrVector<Value *> Invariants;
165 Instruction *TI, ArrayRef<Value *> Invariants,
168 : TI(TI), Invariants(Invariants), Cost(Cost),
197 TinyPtrVector<Value *> Invariants;
216 Invariants.push_back(OpV);
232 return Invariants;
273 BasicBlock &BB, ArrayRef<Value *> Invariants, bool Direction,
279 for (Value *Inv : Invariants) {
516 TinyPtrVector<Value *> Invariants;
524 Invariants.push_back(Cond);
528 Invariants = collectHomogenousInstGraphLoopInvariants(L, *CondInst, LI);
529 if (Invariants.empty()) {
572 for (Value *Invariant : Invariants) {
574 if (Invariant != Invariants.back())
652 *OldPH, Invariants, ExitDirection, *UnswitchedBB, *NewPH,
700 for (Value *Invariant : Invariants)
2177 Loop &L, Instruction &TI, ArrayRef<Value *> Invariants,
2196 SI || (skipTrivialSelect(BI->getCondition()) == Invariants[0] &&
2199 assert(Invariants.size() == 1 &&
2468 *SplitBB, Invariants, Direction, *ClonedPH, *LoopPH, L, MSSAU);
2471 *SplitBB, Invariants, Direction, *ClonedPH, *LoopPH,
2545 FullUnswitch || (Invariants.size() == 1) || PartiallyInvariant;
2553 for (Value *Invariant : Invariants) {
2914 TinyPtrVector<Value *> Invariants =
2917 if (!Invariants.empty())
2918 UnswitchCandidates.push_back({I, std::move(Invariants)});
3434 ArrayRef<Value *> Invariants = Candidate.Invariants;
3438 (Invariants.size() == 1 &&
3439 Invariants[0] == skipTrivialSelect(BI->getCondition()));
3559 unswitchNontrivialInvariants(L, *Best.TI, Best.Invariants, PartialIVInfo, DT,