Lines Matching refs:Invariants
140 TinyPtrVector<Value *> Invariants; in collectHomogenousInstGraphLoopInvariants() local
159 Invariants.push_back(OpV); in collectHomogenousInstGraphLoopInvariants()
175 return Invariants; in collectHomogenousInstGraphLoopInvariants()
215 BasicBlock &BB, ArrayRef<Value *> Invariants, bool Direction, in buildPartialUnswitchConditionalBranch() argument
221 for (Value *Inv : Invariants) { in buildPartialUnswitchConditionalBranch()
456 TinyPtrVector<Value *> Invariants; in unswitchTrivialBranch() local
464 Invariants.push_back(Cond); in unswitchTrivialBranch()
468 Invariants = collectHomogenousInstGraphLoopInvariants(L, *CondInst, LI); in unswitchTrivialBranch()
469 if (Invariants.empty()) { in unswitchTrivialBranch()
512 for (Value *Invariant : Invariants) { in unswitchTrivialBranch()
514 if (Invariant != Invariants.back()) in unswitchTrivialBranch()
591 *OldPH, Invariants, ExitDirection, *UnswitchedBB, *NewPH, in unswitchTrivialBranch()
637 for (Value *Invariant : Invariants) in unswitchTrivialBranch()
2049 Loop &L, Instruction &TI, ArrayRef<Value *> Invariants, in unswitchNontrivialInvariants() argument
2066 SI || (skipTrivialSelect(BI->getCondition()) == Invariants[0] && in unswitchNontrivialInvariants()
2069 assert(Invariants.size() == 1 && in unswitchNontrivialInvariants()
2336 *SplitBB, Invariants, Direction, *ClonedPH, *LoopPH, L, MSSAU); in unswitchNontrivialInvariants()
2339 *SplitBB, Invariants, Direction, *ClonedPH, *LoopPH, in unswitchNontrivialInvariants()
2412 FullUnswitch || (Invariants.size() == 1) || PartiallyInvariant; in unswitchNontrivialInvariants()
2420 for (Value *Invariant : Invariants) { in unswitchNontrivialInvariants()
2784 TinyPtrVector<Value *> Invariants = in unswitchBestCondition() local
2786 if (Invariants.empty()) in unswitchBestCondition()
2789 UnswitchCandidates.push_back({BI, std::move(Invariants)}); in unswitchBestCondition()
2966 ArrayRef<Value *> Invariants = TerminatorAndInvariants.second; in unswitchBestCondition() local
2970 (Invariants.size() == 1 && in unswitchBestCondition()
2971 Invariants[0] == skipTrivialSelect(BI->getCondition()))); in unswitchBestCondition()
2992 BestUnswitchInvariants = Invariants; in unswitchBestCondition()