Lines Matching defs: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)
2176 Loop &L, Instruction &TI, ArrayRef<Value *> Invariants,
2195 SI || (skipTrivialSelect(BI->getCondition()) == Invariants[0] &&
2198 assert(Invariants.size() == 1 &&
2467 *SplitBB, Invariants, Direction, *ClonedPH, *LoopPH, L, MSSAU);
2470 *SplitBB, Invariants, Direction, *ClonedPH, *LoopPH,
2544 FullUnswitch || (Invariants.size() == 1) || PartiallyInvariant;
2552 for (Value *Invariant : Invariants) {
2913 TinyPtrVector<Value *> Invariants =
2916 if (!Invariants.empty())
2917 UnswitchCandidates.push_back({I, std::move(Invariants)});
3435 ArrayRef<Value *> Invariants = Candidate.Invariants;
3439 (Invariants.size() == 1 &&
3440 Invariants[0] == skipTrivialSelect(BI->getCondition()));
3560 unswitchNontrivialInvariants(L, *Best.TI, Best.Invariants, PartialIVInfo, DT,