Lines Matching refs:Invariants

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