Lines Matching refs:Invariants
159 TinyPtrVector<Value *> Invariants; member
163 Instruction *TI, ArrayRef<Value *> Invariants, in NonTrivialUnswitchCandidate()
166 : TI(TI), Invariants(Invariants), Cost(Cost), in NonTrivialUnswitchCandidate()
195 TinyPtrVector<Value *> Invariants; in collectHomogenousInstGraphLoopInvariants() local
214 Invariants.push_back(OpV); in collectHomogenousInstGraphLoopInvariants()
230 return Invariants; in collectHomogenousInstGraphLoopInvariants()
271 BasicBlock &BB, ArrayRef<Value *> Invariants, bool Direction, in buildPartialUnswitchConditionalBranch() argument
277 for (Value *Inv : Invariants) { in buildPartialUnswitchConditionalBranch()
514 TinyPtrVector<Value *> Invariants; in unswitchTrivialBranch() local
522 Invariants.push_back(Cond); in unswitchTrivialBranch()
526 Invariants = collectHomogenousInstGraphLoopInvariants(L, *CondInst, LI); in unswitchTrivialBranch()
527 if (Invariants.empty()) { in unswitchTrivialBranch()
570 for (Value *Invariant : Invariants) { in unswitchTrivialBranch()
572 if (Invariant != Invariants.back()) in unswitchTrivialBranch()
649 *OldPH, Invariants, ExitDirection, *UnswitchedBB, *NewPH, in unswitchTrivialBranch()
695 for (Value *Invariant : Invariants) in unswitchTrivialBranch()
2163 Loop &L, Instruction &TI, ArrayRef<Value *> Invariants, in unswitchNontrivialInvariants() argument
2182 SI || (skipTrivialSelect(BI->getCondition()) == Invariants[0] && in unswitchNontrivialInvariants()
2185 assert(Invariants.size() == 1 && in unswitchNontrivialInvariants()
2448 *SplitBB, Invariants, Direction, *ClonedPH, *LoopPH, L, MSSAU); in unswitchNontrivialInvariants()
2451 *SplitBB, Invariants, Direction, *ClonedPH, *LoopPH, in unswitchNontrivialInvariants()
2525 FullUnswitch || (Invariants.size() == 1) || PartiallyInvariant; in unswitchNontrivialInvariants()
2533 for (Value *Invariant : Invariants) { in unswitchNontrivialInvariants()
2892 TinyPtrVector<Value *> Invariants = in collectUnswitchCandidates() local
2895 if (!Invariants.empty()) in collectUnswitchCandidates()
2896 UnswitchCandidates.push_back({I, std::move(Invariants)}); in collectUnswitchCandidates()
3412 ArrayRef<Value *> Invariants = Candidate.Invariants; in findBestNonTrivialUnswitchCandidate() local
3416 (Invariants.size() == 1 && in findBestNonTrivialUnswitchCandidate()
3417 Invariants[0] == skipTrivialSelect(BI->getCondition())); in findBestNonTrivialUnswitchCandidate()
3537 unswitchNontrivialInvariants(L, *Best.TI, Best.Invariants, PartialIVInfo, DT, in unswitchBestCondition()