Lines Matching refs:Invariants
108 TinyPtrVector<Value *> Invariants; in collectHomogenousInstGraphLoopInvariants() local
124 Invariants.push_back(OpV); in collectHomogenousInstGraphLoopInvariants()
139 return Invariants; in collectHomogenousInstGraphLoopInvariants()
179 ArrayRef<Value *> Invariants, in buildPartialUnswitchConditionalBranch() argument
184 Value *Cond = Invariants.front(); in buildPartialUnswitchConditionalBranch()
186 make_range(std::next(Invariants.begin()), Invariants.end())) in buildPartialUnswitchConditionalBranch()
360 TinyPtrVector<Value *> Invariants; in unswitchTrivialBranch() local
367 Invariants.push_back(BI.getCondition()); in unswitchTrivialBranch()
371 Invariants = collectHomogenousInstGraphLoopInvariants(L, *CondInst, LI); in unswitchTrivialBranch()
372 if (Invariants.empty()) in unswitchTrivialBranch()
411 for (Value *Invariant : Invariants) { in unswitchTrivialBranch()
413 if (Invariant != Invariants.back()) in unswitchTrivialBranch()
487 buildPartialUnswitchConditionalBranch(*OldPH, Invariants, ExitDirection, in unswitchTrivialBranch()
533 for (Value *Invariant : Invariants) in unswitchTrivialBranch()
1876 Loop &L, Instruction &TI, ArrayRef<Value *> Invariants, in unswitchNontrivialInvariants() argument
1888 bool FullUnswitch = SI || BI->getCondition() == Invariants[0]; in unswitchNontrivialInvariants()
1890 assert(Invariants.size() == 1 && in unswitchNontrivialInvariants()
2115 buildPartialUnswitchConditionalBranch(*SplitBB, Invariants, Direction, in unswitchNontrivialInvariants()
2182 bool ReplaceUnswitched = FullUnswitch || (Invariants.size() == 1); in unswitchNontrivialInvariants()
2190 for (Value *Invariant : Invariants) in unswitchNontrivialInvariants()
2549 TinyPtrVector<Value *> Invariants = in unswitchBestCondition() local
2551 if (Invariants.empty()) in unswitchBestCondition()
2554 UnswitchCandidates.push_back({BI, std::move(Invariants)}); in unswitchBestCondition()
2701 ArrayRef<Value *> Invariants = TerminatorAndInvariants.second; in unswitchBestCondition() local
2704 TI, /*FullUnswitch*/ !BI || (Invariants.size() == 1 && in unswitchBestCondition()
2705 Invariants[0] == BI->getCondition())); in unswitchBestCondition()
2726 BestUnswitchInvariants = Invariants; in unswitchBestCondition()